macho: make sure both vmsize and filesize for segments match always

This commit is contained in:
Jakub Konka 2022-09-15 22:47:51 +02:00
parent 2c971f0085
commit 66942cbc1a

View File

@ -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,