[llvm-branch-commits] [lld] Fix handling of RISCV TLSDESC relocations (PR #85817)

2024-03-19 Thread Paul Kirth via llvm-branch-commits
@@ -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

[llvm-branch-commits] [lld] Fix handling of RISCV TLSDESC relocations (PR #85817)

2024-03-19 Thread via llvm-branch-commits
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`.

[llvm-branch-commits] [lld] Fix handling of RISCV TLSDESC relocations (PR #85817)

2024-03-19 Thread Paul Kirth via llvm-branch-commits
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`.