From 45ad4aab95cf1916a0c63915584d8e1c12dccdc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Fri, 14 Aug 2026 04:11:38 +0200 Subject: [PATCH] std.os.linux: Elf_Symndx is u64 on alpha like s390x --- lib/std/os/linux.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 458d3195ac2f0d383b92867373824ec016e1e6e7..436b3a0ee4f333ffab3c65dcdff3ecabd7043d24 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -2135,7 +2135,10 @@ pub fn flock(fd: fd_t, operation: i32) usize { return syscall2(.flock, @as(u32, @bitCast(fd)), @as(u32, @bitCast(operation))); } -pub const Elf_Symndx = if (native_arch == .s390x) u64 else u32; +pub const Elf_Symndx = switch (native_arch) { + .alpha, .s390x => u64, + else => u32, +}; // We must follow the C calling convention when we call into the VDSO const VdsoClockGettime = *align(1) const fn (clockid_t, *timespec) callconv(.c) usize; -- 2.54.0