| ... | @@ -1660,7 +1660,7 @@ pub fn getBaseAddress() usize { | ... | @@ -1660,7 +1660,7 @@ pub fn getBaseAddress() usize { |
| 1660 | const phdr = getauxval(std.elf.AT_PHDR); | 1660 | const phdr = getauxval(std.elf.AT_PHDR); |
| 1661 | return phdr - @sizeOf(std.elf.Ehdr); | 1661 | return phdr - @sizeOf(std.elf.Ehdr); |
| 1662 | }, | 1662 | }, |
| 1663 | .macos => { | 1663 | .driverkit, .ios, .macos, .tvos, .visionos, .watchos => { |
| 1664 | return @intFromPtr(&std.c._mh_execute_header); | 1664 | return @intFromPtr(&std.c._mh_execute_header); |
| 1665 | }, | 1665 | }, |
| 1666 | .windows => return @intFromPtr(windows.kernel32.GetModuleHandleW(null)), | 1666 | .windows => return @intFromPtr(windows.kernel32.GetModuleHandleW(null)), |