From b9efdbb412fa9e5691553eca49aacd31e9d7ff69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 26 Mar 2025 18:28:21 +0100 Subject: [PATCH] std.process: Fix getBaseAddress() to handle all Darwin OSs. --- lib/std/process.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/process.zig b/lib/std/process.zig index 6c9ae4eb50..c2d18086fc 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -1660,7 +1660,7 @@ pub fn getBaseAddress() usize { const phdr = getauxval(std.elf.AT_PHDR); return phdr - @sizeOf(std.elf.Ehdr); }, - .macos => { + .driverkit, .ios, .macos, .tvos, .visionos, .watchos => { return @intFromPtr(&std.c._mh_execute_header); }, .windows => return @intFromPtr(windows.kernel32.GetModuleHandleW(null)),