diff options
author | Nelson Chu <nelson@rivosinc.com> | 2023-11-06 13:28:51 +0800 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2023-11-06 17:21:42 +0800 |
commit | 0c4b8ed69c5713e567b6c1d866f6d8cdb9de11f7 (patch) | |
tree | b91bc71c219063a5873b1a5c6a2190d8f0e11638 /bfd/reloc.c | |
parent | a3f007ea284e971e5472b8ec4f90be3711a2aa4c (diff) | |
download | gdb-0c4b8ed69c5713e567b6c1d866f6d8cdb9de11f7.zip gdb-0c4b8ed69c5713e567b6c1d866f6d8cdb9de11f7.tar.gz gdb-0c4b8ed69c5713e567b6c1d866f6d8cdb9de11f7.tar.bz2 |
RISC-V: Moved out linker internal relocations after R_RISCV_max.
Just the lightest modifications about this, without any further checks and
considering --emit-relocs. We will need to improve it in the future, but
first do this to avoid conflicts between linker internal relocations and the
new definition of psabi. For example, TLSDESC relocs.
Passed riscv-gnu-toolchain regressions, so should be safe enough to commit.
Co-authored-by: Tsukasa OI <research_trasio@irq.a4lg.com>
bfd/
* reloc.c: Removed linker internal relocations.
* bfd-in2.h: Regenerated.
* libbfd.h: Regenerated.
* elfnn-riscv.c: Defined R_RISCV_DELETE in include/elf/riscv.h.
* elfxx-riscv.c (howto_table, howto_table_internal): Moved linker
internal relocations from howto_table into howto_table_internal.
(riscv_reloc_map): Removed linker internal relocations mapping.
(riscv_elf_rtype_to_howto): Return howto of linker internal
relocations from howto_table_internal.
include/
* elf/riscv.h: Defined linker internal relocations after R_RISCV_max.
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r-- | bfd/reloc.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c index 6e9377c..93ebad8 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -4991,16 +4991,6 @@ ENUMX ENUMX BFD_RELOC_RISCV_RVC_JUMP ENUMX - BFD_RELOC_RISCV_RVC_LUI -ENUMX - BFD_RELOC_RISCV_GPREL_I -ENUMX - BFD_RELOC_RISCV_GPREL_S -ENUMX - BFD_RELOC_RISCV_TPREL_I -ENUMX - BFD_RELOC_RISCV_TPREL_S -ENUMX BFD_RELOC_RISCV_RELAX ENUMX BFD_RELOC_RISCV_CFA |