1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-10 19:26:38 +03:00

[Mach-O] wip

This commit is contained in:
Rui Ueyama 2021-09-18 17:38:34 +09:00
parent 1ebfc28aea
commit fb0b316c81

View File

@ -269,7 +269,7 @@ void OutputSegment::update_hdr(Context &ctx) {
auto set_offset = [&](OutputSection &sec) {
sec.update_hdr(ctx);
offset = align_to(offset, 1 << sec.hdr.p2align);
sec.hdr.addr = offset;
sec.hdr.addr = cmd.vmaddr + offset;
sec.hdr.offset = offset;
offset += sec.hdr.size;
};