aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTatsuyuki Ishi <ishitatsuyuki@gmail.com>2024-02-21 02:55:49 +0900
committerNelson Chu <nelson@rivosinc.com>2024-02-29 15:02:49 +0800
commitdc1470f1d8779e151fb231639014597582bb7f4e (patch)
tree83e6a0268b0bb82588a7d343af7aa6c30f8e9eee /include
parent3243d790ee32aa8eda69226d81b1e79dbd1dcd87 (diff)
downloadgdb-dc1470f1d8779e151fb231639014597582bb7f4e.zip
gdb-dc1470f1d8779e151fb231639014597582bb7f4e.tar.gz
gdb-dc1470f1d8779e151fb231639014597582bb7f4e.tar.bz2
RISC-V: Add TLSDESC reloc definitions.
bfd/ * elfxx-riscv.c: Add 5 TLSDESC reloc descriptions. * reloc.c: Likewise. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. include/ * elf/riscv.h: Add 5 TLSDESC reloc descriptions.
Diffstat (limited to 'include')
-rw-r--r--include/elf/riscv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/elf/riscv.h b/include/elf/riscv.h
index 2000cf2..c1e73f7 100644
--- a/include/elf/riscv.h
+++ b/include/elf/riscv.h
@@ -44,6 +44,7 @@ START_RELOC_NUMBERS (elf_riscv_reloc_type)
RELOC_NUMBER (R_RISCV_TLS_DTPREL64, 9)
RELOC_NUMBER (R_RISCV_TLS_TPREL32, 10)
RELOC_NUMBER (R_RISCV_TLS_TPREL64, 11)
+ RELOC_NUMBER (R_RISCV_TLSDESC, 12)
/* Relocation types not used by the dynamic linker. */
RELOC_NUMBER (R_RISCV_BRANCH, 16)
@@ -90,6 +91,10 @@ START_RELOC_NUMBERS (elf_riscv_reloc_type)
/* Reserved 59 for R_RISCV_PLT32. */
RELOC_NUMBER (R_RISCV_SET_ULEB128, 60)
RELOC_NUMBER (R_RISCV_SUB_ULEB128, 61)
+ RELOC_NUMBER (R_RISCV_TLSDESC_HI20, 62)
+ RELOC_NUMBER (R_RISCV_TLSDESC_LOAD_LO12, 63)
+ RELOC_NUMBER (R_RISCV_TLSDESC_ADD_LO12, 64)
+ RELOC_NUMBER (R_RISCV_TLSDESC_CALL, 65)
END_RELOC_NUMBERS (R_RISCV_max)
/* Internal relocations used exclusively by the relaxation pass. */