@@ -1280,7 +1280,6 @@ static unsigned handleTlsRelocation(RelType type, Symbol
,
if (config->emachine == EM_MIPS)
return handleMipsTlsRelocation(type, sym, c, offset, addend, expr);
bool isRISCV = config->emachine == EM_RISCV;
-
ilovepi wrote:
will
llvmbot wrote:
@llvm/pr-subscribers-lld-elf
Author: Paul Kirth (ilovepi)
Changes
When adding fixups for RISCV_TLSDESC_ADD_LO and RISCV_TLSDESC_LOAD_LO,
the local label added for RISCV TLSDESC relocations have STT_TLS set,
which is incorrect. Instead, these labels should have `STT_NOTYPE`.
https://github.com/ilovepi created
https://github.com/llvm/llvm-project/pull/85817
When adding fixups for RISCV_TLSDESC_ADD_LO and RISCV_TLSDESC_LOAD_LO,
the local label added for RISCV TLSDESC relocations have STT_TLS set,
which is incorrect. Instead, these labels should have `STT_NOTYPE`.