From d2b256711944f75007199ea65141642511b21d8d Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Tue, 20 Jun 2023 11:57:44 +0200 Subject: [PATCH] macho: do not skip scanning relocs if the sym is non-extern --- src/link/MachO/ZldAtom.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/link/MachO/ZldAtom.zig b/src/link/MachO/ZldAtom.zig index 1252379aa7..55a6325a5a 100644 --- a/src/link/MachO/ZldAtom.zig +++ b/src/link/MachO/ZldAtom.zig @@ -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]