1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-21 09:57:18 +03:00

[Mach-O] wip

This commit is contained in:
Rui Ueyama 2021-10-24 17:00:53 +09:00
parent 31373b1d6d
commit 78ff2bb73a

View File

@ -92,15 +92,10 @@ static void create_synthetic_chunks(Context &ctx) {
}
static void export_symbols(Context &ctx) {
std::vector<Symbol *> syms;
for (DylibFile *dylib : ctx.dylibs)
for (Symbol *sym : dylib->syms)
if (sym->file == dylib && sym->needs_stub)
syms.push_back(sym);
for (Symbol *sym : syms)
ctx.stubs.add(ctx, sym);
ctx.stubs.add(ctx, sym);
}
static i64 assign_offsets(Context &ctx) {