[PATCH] D70398: [lld] Support copy relocations for TLS symbols
James Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 11:53:28 PST 2019
jrtc27 added a comment.
Note that, for both GCC and LLVM, the default model used for TLS variables in position-depedent code is LE even if extern, relying on TLS copy relocations. GCC explicitly mentions this in gcc/config/riscv/riscv.c with `/* Since we support TLS copy relocs, non-PIC TLS accesses may all use LE. */`, and LLVM says `// Non-PIC TLS lowering should always use the LocalExec model.` (although perhaps that should mention *why* this is ok). Hence this is needed in order to link some real-world code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70398/new/
https://reviews.llvm.org/D70398
More information about the llvm-commits
mailing list