[lld] [NFC][ELF] Remove unused R_TLSDESC_CALL RelExpr (PR #210518)

Jessica Clarke via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 18 08:43:51 PDT 2026


https://github.com/jrtc27 created https://github.com/llvm/llvm-project/pull/210518

As of 4ea72c1e8cbd ("[ELF] Add target-specific relocation scanning for
RISC-V (#181332)") this is never generated, and as of 46d29d43ba8e
("[ELF] Remove unused handleTlsRelocation (#184951)") this is not even
handled anywhere.

>From ac321d2d5ead31ddb290af1cebc2a2096dc91e40 Mon Sep 17 00:00:00 2001
From: Jessica Clarke <jrtc27 at jrtc27.com>
Date: Sat, 18 Jul 2026 15:33:31 +0100
Subject: [PATCH] [NFC][ELF] Remove unused R_TLSDESC_CALL RelExpr

As of 4ea72c1e8cbd ("[ELF] Add target-specific relocation scanning for
RISC-V (#181332)") this is never generated, and as of 46d29d43ba8e
("[ELF] Remove unused handleTlsRelocation (#184951)") this is not even
handled anywhere.
---
 lld/ELF/Relocations.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lld/ELF/Relocations.h b/lld/ELF/Relocations.h
index 5615103fe7a39..b7b247d7655d7 100644
--- a/lld/ELF/Relocations.h
+++ b/lld/ELF/Relocations.h
@@ -67,7 +67,6 @@ enum RelExpr {
   R_TPREL,
   R_TPREL_NEG,
   R_TLSDESC,
-  R_TLSDESC_CALL,
   R_TLSDESC_PC,
   R_TLSDESC_GOTPLT,
   R_TLSGD_GOT,



More information about the llvm-commits mailing list