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 04:29:45+02:00
log2b448d33d916a78693ab1f7f5d8701c352352201
tree723bfdadde5049578c46c308ca3f1da6ab6413c6
parentaf6b6d46b9de671f786a187458efda57ed55fb52
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
......@@ -2469,6 +2469,9 @@ pub const DynamicLinker = struct {
24692469 .tvos,
24702470 .visionos,
24712471 .watchos,
2472
2473 .ps4,
2474 .ps5,
24722475 => .arch_os,
24732476
24742477 .hurd,
......@@ -2489,6 +2492,11 @@ pub const DynamicLinker = struct {
24892492 .@"switch",
24902493 .gba,
24912494
2495 .psx,
2496 .ps3,
2497 .psp,
2498 .vita,
2499
24922500 .emscripten,
24932501 .wasi,
24942502
......@@ -2501,13 +2509,6 @@ pub const DynamicLinker = struct {
25012509 .opengl,
25022510 .vulkan,
25032511
2504 .psx,
2505 .ps3,
2506 .ps4,
2507 .ps5,
2508 .psp,
2509 .vita,
2510
25112512 .tios,
25122513 .ashetos,
25132514 => .none,
......@@ -2910,8 +2911,10 @@ pub const DynamicLinker = struct {
29102911 else => none,
29112912 },
29122913
2913 // Operating systems in this list have been verified as not having a standard
2914 // dynamic linker path.
2914 .ps4,
2915 .ps5,
2916 => if (cpu.arch == .x86_64) init("/libexec/ld-elf.so.1") else none,
2917
29152918 .freestanding,
29162919 .other,
29172920
......@@ -2946,12 +2949,6 @@ pub const DynamicLinker = struct {
29462949 .tios,
29472950 .ashetos,
29482951 => none,
2949
2950 // TODO go over each item in this list and either move it to the above list, or
2951 // implement the standard dynamic linker path code for it.
2952 .ps4,
2953 .ps5,
2954 => none,
29552952 } catch unreachable;
29562953 }
29572954};