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:
parent
1ebfc28aea
commit
fb0b316c81
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user