segments dont use the S_ZEROFILL, just section

This commit is contained in:
Lowly Worm 2018-01-08 20:50:55 -08:00
parent 3d8833f47c
commit f306a3ae0b

View File

@ -1313,7 +1313,7 @@ struct section_t* MACH0_(get_sections)(struct MACH0_(obj_t)* bin) {
seg = &bin->segs[i];
sections[i].addr = seg->vmaddr;
sections[i].offset = seg->fileoff;
sections[i].size = seg->flags & S_ZEROFILL ? 0 : seg->vmsize;
sections[i].size = seg->vmsize;
sections[i].vsize = seg->vmsize;
sections[i].align = 4096;
sections[i].flags = seg->flags;