[PATCH] D93467: [ELF] Rename R_TLS to R_TPREL and R_NEG_TLS to R_NEG_TPREL. NFC

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 17 09:30:36 PST 2020


MaskRay created this revision.
MaskRay added reviewers: grimar, jhenderson, psmith, ruiu.
Herald added subscribers: frasercrmck, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, lenary, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, atanasyan, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, fedor.sergeev, kbarton, arichardson, nemanjai, sdardis, emaste, jyknight.
Herald added a reviewer: espindola.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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_NEG_TLS is only used by Solaris R_386_TLS_LE_32.

Rename them so that they will be less confusing.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93467

Files:
  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.cpp
  lld/ELF/Relocations.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93467.312537.patch
Type: text/x-patch
Size: 5691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201217/e0b81133/attachment.bin>


More information about the llvm-commits mailing list