authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 03:32:57+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 05:26:39+02:00
log190d52390ea72da81ea01048a6b87cf6c2fe082e
tree56264febf680126b233fe3b8cfb6e596c4892e19
parent7f5f2a463e5af1e69edd228e24712ea8fd612c5e
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: define standard dynamic linker path for ps4 and ps5

contributes to https://codeberg.org/ziglang/zig/issues/31341

1 files changed, 12 insertions(+), 15 deletions(-)

lib/std/Target.zig+12-15
...@@ -2485,6 +2485,9 @@ pub const DynamicLinker = struct {...@@ -2485,6 +2485,9 @@ pub const DynamicLinker = struct {
2485 .tvos,2485 .tvos,
2486 .visionos,2486 .visionos,
2487 .watchos,2487 .watchos,
2488
2489 .ps4,
2490 .ps5,
2488 => .arch_os,2491 => .arch_os,
24892492
2490 .hurd,2493 .hurd,
...@@ -2508,6 +2511,11 @@ pub const DynamicLinker = struct {...@@ -2508,6 +2511,11 @@ pub const DynamicLinker = struct {
2508 .@"switch",2511 .@"switch",
2509 .gba,2512 .gba,
25102513
2514 .psx,
2515 .ps3,
2516 .psp,
2517 .vita,
2518
2511 .emscripten,2519 .emscripten,
2512 .wasi,2520 .wasi,
25132521
...@@ -2520,13 +2528,6 @@ pub const DynamicLinker = struct {...@@ -2520,13 +2528,6 @@ pub const DynamicLinker = struct {
2520 .opengl,2528 .opengl,
2521 .vulkan,2529 .vulkan,
25222530
2523 .psx,
2524 .ps3,
2525 .ps4,
2526 .ps5,
2527 .psp,
2528 .vita,
2529
2530 .tios,2531 .tios,
2531 .ashetos,2532 .ashetos,
2532 => .none,2533 => .none,
...@@ -2926,8 +2927,10 @@ pub const DynamicLinker = struct {...@@ -2926,8 +2927,10 @@ pub const DynamicLinker = struct {
2926 else => none,2927 else => none,
2927 },2928 },
29282929
2929 // Operating systems in this list have been verified as not having a standard2930 .ps4,
2930 // dynamic linker path.2931 .ps5,
2932 => if (cpu.arch == .x86_64) init("/libexec/ld-elf.so.1") else none,
2933
2931 .freestanding,2934 .freestanding,
2932 .other,2935 .other,
29332936
...@@ -2965,12 +2968,6 @@ pub const DynamicLinker = struct {...@@ -2965,12 +2968,6 @@ pub const DynamicLinker = struct {
2965 .tios,2968 .tios,
2966 .ashetos,2969 .ashetos,
2967 => none,2970 => none,
2968
2969 // TODO go over each item in this list and either move it to the above list, or
2970 // implement the standard dynamic linker path code for it.
2971 .ps4,
2972 .ps5,
2973 => none,
2974 } catch unreachable;2971 } catch unreachable;
2975 }2972 }
2976};2973};