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 {
24852485 .tvos,
24862486 .visionos,
24872487 .watchos,
2488
2489 .ps4,
2490 .ps5,
24882491 => .arch_os,
24892492
24902493 .hurd,
......@@ -2508,6 +2511,11 @@ pub const DynamicLinker = struct {
25082511 .@"switch",
25092512 .gba,
25102513
2514 .psx,
2515 .ps3,
2516 .psp,
2517 .vita,
2518
25112519 .emscripten,
25122520 .wasi,
25132521
......@@ -2520,13 +2528,6 @@ pub const DynamicLinker = struct {
25202528 .opengl,
25212529 .vulkan,
25222530
2523 .psx,
2524 .ps3,
2525 .ps4,
2526 .ps5,
2527 .psp,
2528 .vita,
2529
25302531 .tios,
25312532 .ashetos,
25322533 => .none,
......@@ -2926,8 +2927,10 @@ pub const DynamicLinker = struct {
29262927 else => none,
29272928 },
29282929
2929 // Operating systems in this list have been verified as not having a standard
2930 // dynamic linker path.
2930 .ps4,
2931 .ps5,
2932 => if (cpu.arch == .x86_64) init("/libexec/ld-elf.so.1") else none,
2933
29312934 .freestanding,
29322935 .other,
29332936
......@@ -2965,12 +2968,6 @@ pub const DynamicLinker = struct {
29652968 .tios,
29662969 .ashetos,
29672970 => 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,
29742971 } catch unreachable;
29752972 }
29762973};