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 {...@@ -2469,6 +2469,9 @@ pub const DynamicLinker = struct {
2469 .tvos,2469 .tvos,
2470 .visionos,2470 .visionos,
2471 .watchos,2471 .watchos,
2472
2473 .ps4,
2474 .ps5,
2472 => .arch_os,2475 => .arch_os,
24732476
2474 .hurd,2477 .hurd,
...@@ -2489,6 +2492,11 @@ pub const DynamicLinker = struct {...@@ -2489,6 +2492,11 @@ pub const DynamicLinker = struct {
2489 .@"switch",2492 .@"switch",
2490 .gba,2493 .gba,
24912494
2495 .psx,
2496 .ps3,
2497 .psp,
2498 .vita,
2499
2492 .emscripten,2500 .emscripten,
2493 .wasi,2501 .wasi,
24942502
...@@ -2501,13 +2509,6 @@ pub const DynamicLinker = struct {...@@ -2501,13 +2509,6 @@ pub const DynamicLinker = struct {
2501 .opengl,2509 .opengl,
2502 .vulkan,2510 .vulkan,
25032511
2504 .psx,
2505 .ps3,
2506 .ps4,
2507 .ps5,
2508 .psp,
2509 .vita,
2510
2511 .tios,2512 .tios,
2512 .ashetos,2513 .ashetos,
2513 => .none,2514 => .none,
...@@ -2910,8 +2911,10 @@ pub const DynamicLinker = struct {...@@ -2910,8 +2911,10 @@ pub const DynamicLinker = struct {
2910 else => none,2911 else => none,
2911 },2912 },
29122913
2913 // Operating systems in this list have been verified as not having a standard2914 .ps4,
2914 // dynamic linker path.2915 .ps5,
2916 => if (cpu.arch == .x86_64) init("/libexec/ld-elf.so.1") else none,
2917
2915 .freestanding,2918 .freestanding,
2916 .other,2919 .other,
29172920
...@@ -2946,12 +2949,6 @@ pub const DynamicLinker = struct {...@@ -2946,12 +2949,6 @@ pub const DynamicLinker = struct {
2946 .tios,2949 .tios,
2947 .ashetos,2950 .ashetos,
2948 => none,2951 => 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,
2955 } catch unreachable;2952 } catch unreachable;
2956 }2953 }
2957};2954};