[PATCH] D86573: [lld-macho] Implement weak binding for branch relocations
Shoaib Meenai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 10:56:12 PDT 2020
smeenai accepted this revision.
smeenai added a comment.
LGTM
================
Comment at: lld/test/MachO/weak-definition-order.s:28
# RUN: lld -flavor darwinnew -L%S/Inputs/MacOSX.sdk/usr/lib -lSystem -o %t/dylib21 -Z -L%t -lweak2 -lweak1 %t/test.o
-# RUN: llvm-objdump --macho --lazy-bind %t/dylib21 | FileCheck %s --check-prefix=DYLIB2
-## TODO: these should really be in the weak binding section, not the lazy binding section
-# DYLIB1: __DATA __la_symbol_ptr 0x{{[0-9a-f]*}} libweak1 _foo
-# DYLIB2: __DATA __la_symbol_ptr 0x{{[0-9a-f]*}} libweak2 _foo
+# RUN: llvm-objdump --macho --bind %t/dylib21 | FileCheck %s --check-prefix=DYLIB2
+# DYLIB1: __DATA __la_symbol_ptr 0x{{[0-9a-f]*}} pointer 0 libweak1 _foo
----------------
int3 wrote:
> smeenai wrote:
> > Do we also wanna check the weak bind entries?
> the weak bind info doesn't include the dylib name, so it won't tell us which symbol got priority here
Ah, right.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86573/new/
https://reviews.llvm.org/D86573
More information about the llvm-commits
mailing list