1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-13 09:39:13 +03:00

[Mach-O] wip

This commit is contained in:
Rui Ueyama 2021-10-25 15:47:02 +09:00
parent 2e07e62ffd
commit 31e49a08a0

View File

@ -471,8 +471,10 @@ void OutputLazyBindSection::add(Context &ctx, Symbol &sym, i64 flags) {
void OutputLazyBindSection::compute_size(Context &ctx) {
ctx.stubs.bind_offsets.clear();
ctx.stubs.bind_offsets.push_back(contents.size());
add(ctx, *intern(ctx, "_printf"), 0);
for (Symbol *sym : ctx.stubs.syms) {
ctx.stubs.bind_offsets.push_back(contents.size());
add(ctx, *sym, 0);
}
hdr.size = align_to(contents.size(), 8);
}