The scope of R_TLS (TP offset relocation types (TPREL/TPOFF) used for the
local-exec TLS model) is actually narrower than its name may imply. R_TLS_NEG
is only used by Solaris R_386_TLS_LE_32.
Rename them so that they will be less confusing.
Paths
| Differential D93467
[ELF] Rename R_TLS to R_TPREL and R_NEG_TLS to R_TPREL_NEG. NFC ClosedPublic Authored by MaskRay on Dec 17 2020, 9:30 AM.
Details Summary The scope of R_TLS (TP offset relocation types (TPREL/TPOFF) used for the Rename them so that they will be less confusing.
Diff Detail
Event TimelineComment Actions No objections from me, looks like a sensible change. Going to be on holiday till the end of the year so may be a bit slow to respond to reviews. Comment Actions I also think this is a good change. Maybe R_TPREL_NEG, so it sorts next to R_TPREL in ELF/Relocations.h? We also have R_RELAX_TLS_GD_TO_LE[_NEG]. MaskRay retitled this revision from [ELF] Rename R_TLS to R_TPREL and R_NEG_TLS to R_NEG_TPREL. NFC to [ELF] Rename R_TLS to R_TPREL and R_NEG_TLS to R_TPREL_NEG. NFC. Comment ActionsR_TPREL_NEG This revision is now accepted and ready to land.Dec 18 2020, 12:46 AM Closed by commit rG22c1bd57bf34: [ELF] Rename R_TLS to R_TPREL and R_NEG_TLS to R_TPREL_NEG. NFC (authored by MaskRay). · Explain WhyDec 18 2020, 8:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 312537 lld/ELF/Arch/AArch64.cpp
lld/ELF/Arch/ARM.cpp
lld/ELF/Arch/Hexagon.cpp
lld/ELF/Arch/Mips.cpp
lld/ELF/Arch/PPC.cpp
lld/ELF/Arch/PPC64.cpp
lld/ELF/Arch/RISCV.cpp
lld/ELF/Arch/SPARCV9.cpp
lld/ELF/Arch/X86.cpp
lld/ELF/Arch/X86_64.cpp
lld/ELF/InputSection.cpp
lld/ELF/Relocations.h
lld/ELF/Relocations.cpp
|