mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
macho: do not skip scanning relocs if the sym is non-extern
This commit is contained in:
parent
7b5bd3a93f
commit
d2b2567119
@ -288,9 +288,6 @@ fn scanAtomRelocsArm64(zld: *Zld, atom_index: AtomIndex, relocs: []align(1) cons
|
||||
.sym_index = sym_index,
|
||||
.file = atom.file,
|
||||
};
|
||||
const sym = zld.getSymbol(sym_loc);
|
||||
|
||||
if (sym.sect() and !sym.ext()) continue;
|
||||
|
||||
const target = if (object.getGlobal(sym_index)) |global_index|
|
||||
zld.globals.items[global_index]
|
||||
@ -337,9 +334,6 @@ fn scanAtomRelocsX86(zld: *Zld, atom_index: AtomIndex, relocs: []align(1) const
|
||||
.sym_index = sym_index,
|
||||
.file = atom.file,
|
||||
};
|
||||
const sym = zld.getSymbol(sym_loc);
|
||||
|
||||
if (sym.sect() and !sym.ext()) continue;
|
||||
|
||||
const target = if (object.getGlobal(sym_index)) |global_index|
|
||||
zld.globals.items[global_index]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user