[PATCH] D86573: [lld-macho] Implement weak binding for branch relocations
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 13:21:41 PDT 2020
int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
int3 requested review of this revision.
Since there is no "weak lazy" lookup, function calls to weak symbols are
always non-lazily bound. We emit both regular non-lazy bindings as well
as weak bindings, in order that the weak bindings may overwrite the
non-lazy bindings if an appropriate symbol is found at runtime. However,
the bound addresses will still be written (non-lazily) into the
LazyPointerSection.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86573
Files:
lld/MachO/Arch/X86_64.cpp
lld/MachO/Symbols.h
lld/MachO/SyntheticSections.cpp
lld/MachO/SyntheticSections.h
lld/MachO/Target.h
lld/MachO/Writer.cpp
lld/test/MachO/weak-binding.s
lld/test/MachO/weak-definition-order.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86573.287765.patch
Type: text/x-patch
Size: 20131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200825/e2982e3d/attachment.bin>
More information about the llvm-commits
mailing list