From 0c4b8ed69c5713e567b6c1d866f6d8cdb9de11f7 Mon Sep 17 00:00:00 2001 From: Nelson Chu Date: Mon, 6 Nov 2023 13:28:51 +0800 Subject: 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 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. --- bfd/libbfd.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'bfd/libbfd.h') diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 1ce6bc1..fce0680 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -2400,11 +2400,6 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", "BFD_RELOC_RISCV_ALIGN", "BFD_RELOC_RISCV_RVC_BRANCH", "BFD_RELOC_RISCV_RVC_JUMP", - "BFD_RELOC_RISCV_RVC_LUI", - "BFD_RELOC_RISCV_GPREL_I", - "BFD_RELOC_RISCV_GPREL_S", - "BFD_RELOC_RISCV_TPREL_I", - "BFD_RELOC_RISCV_TPREL_S", "BFD_RELOC_RISCV_RELAX", "BFD_RELOC_RISCV_CFA", "BFD_RELOC_RISCV_SUB6", -- cgit v1.1