Their addresses are already encoded as section-relative offsets, so
there's no need to rebase them at runtime. D85080: [lld-macho] Support static linking of thread-locals has some context
on the weirdness of TLV sections.
Fixes llvm.org/PR48491.
Paths
| Differential D93257
[lld-macho] Don't emit rebase opcodes for relocs in TLV sections ClosedPublic Authored by int3 on Dec 14 2020, 4:06 PM.
Details
Summary Their addresses are already encoded as section-relative offsets, so Fixes llvm.org/PR48491.
Diff Detail
Event TimelineComment Actions I suppose this corresponds to http://llvm-cs.pcc.me.uk/tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86_64.cpp#457 ? This revision is now accepted and ready to land.Dec 14 2020, 5:02 PM This revision was landed with ongoing or failed builds.Dec 15 2020, 1:00 PM Closed by commit rG318451990944: [lld-macho] Don't emit rebase opcodes for relocs in TLV sections (authored by int3). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 312007 lld/MachO/Arch/X86_64.cpp
lld/test/MachO/tlv-dylib.s
lld/test/MachO/tlv.s
|