[PATCH] D102908: [lld][ELF][SPARC] Support TLS IE relocations

LemonBoy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 22 23:39:54 PDT 2021


LemonBoy added inline comments.


================
Comment at: lld/ELF/Driver.cpp:929
   return m == EM_AARCH64 || m == EM_AMDGPU || m == EM_HEXAGON || m == EM_PPC ||
-         m == EM_PPC64 || m == EM_RISCV || m == EM_X86_64;
+         m == EM_PPC64 || m == EM_RISCV || m == EM_SPARCV9 || m == EM_X86_64;
 }
----------------
jrtc27 wrote:
> This should probably be its own commit, it's unrelated to TLS.
This _is_ related to TLS as, without this change, the `R_SPARC_TLS_TPOFF64` would end up in REL form and the resulting program be rejected by `ld.so`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102908/new/

https://reviews.llvm.org/D102908



More information about the llvm-commits mailing list