macho: increase pre-allocated vmsize for __TEXT_ZIG segment

This commit is contained in:
Jakub Konka 2024-09-27 12:23:34 +02:00 committed by Andrew Kelley
parent 737b581681
commit 777e722b06

View File

@ -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,
});