[clang-tools-extra] [clang] [llvm] [RISCV] Support Global Dynamic TLSDESC in the RISC-V backend (PR #66915)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 4 14:19:35 PST 2024


================
@@ -71,6 +71,18 @@ enum Fixups {
   // Used to generate an R_RISCV_ALIGN relocation, which indicates the linker
   // should fixup the alignment after linker relaxation.
   fixup_riscv_align,
+  // 20-bit fixup corresponding to %tlsdesc_hi(foo) for instructions like
+  // auipc
+  fixup_riscv_tlsdesc_hi20,
+  // 12-bit fixup corresponding to %tlsdesc_load_lo(foo) for instructions like
+  // addi
----------------
ilovepi wrote:

Yes, I've fixed it now to use `lw`, but maybe it should just read `... for load instructions` instead? WDYT?

https://github.com/llvm/llvm-project/pull/66915


More information about the cfe-commits mailing list