From 777e722b0618afc524aa83cea89526b18413c7a6 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Fri, 27 Sep 2024 12:23:34 +0200 Subject: [PATCH] macho: increase pre-allocated vmsize for __TEXT_ZIG segment --- src/link/MachO.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/MachO.zig b/src/link/MachO.zig index 42923ecfba..13a33b4cfa 100644 --- a/src/link/MachO.zig +++ b/src/link/MachO.zig @@ -3230,7 +3230,7 @@ fn initMetadata(self: *MachO, options: InitMetadataOptions) !void { self.zig_text_seg_index = try self.addSegment("__TEXT_ZIG", .{ .fileoff = off, .filesize = filesize, - .vmaddr = base_vmaddr + 0x8000000, + .vmaddr = base_vmaddr + 0x4000000, .vmsize = filesize, .prot = macho.PROT.READ | macho.PROT.EXEC, });