mirror of
https://github.com/ziglang/zig.git
synced 2026-02-04 21:53:38 +00:00
macho: make sure both vmsize and filesize for segments match always
This commit is contained in:
parent
2c971f0085
commit
66942cbc1a
@ -3687,7 +3687,7 @@ fn allocateSection(self: *MachO, segname: []const u8, sectname: []const u8, opts
|
||||
.vmaddr = vmaddr,
|
||||
.vmsize = vmsize,
|
||||
.fileoff = off,
|
||||
.filesize = opts.size,
|
||||
.filesize = vmsize,
|
||||
.maxprot = opts.prot,
|
||||
.initprot = opts.prot,
|
||||
.nsects = 1,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user