From 9801120721c3a702ce3bd50433ef920f92a83502 Mon Sep 17 00:00:00 2001 From: liuzhensong Date: Wed, 20 Jul 2022 19:55:27 +0800 Subject: bfd: Delete R_LARCH_NONE from dyn info of LoongArch. Some R_LARCH_64 in section .eh_frame will to generate R_LARCH_NONE, we change relocation to R_LARCH_32_PCREL from R_LARCH_64 in setction .eh_frame and not generate dynamic relocation for R_LARCH_32_PCREL. Add New relocate type R_LARCH_32_PCREL for .eh_frame. include/elf/ loongarch.h bfd/ bfd/bfd-in2.h libbfd.h reloc.c elfxx-loongarch.c elfnn-loongarch.c gas/config/ tc-loongarch.c binutils/ readelf.c ld/testsuite/ld-elf/ eh5.d --- include/elf/loongarch.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/elf/loongarch.h b/include/elf/loongarch.h index 2d2bb6a..74757b8 100644 --- a/include/elf/loongarch.h +++ b/include/elf/loongarch.h @@ -223,8 +223,11 @@ RELOC_NUMBER (R_LARCH_TLS_GD_PC_HI20, 97) %gd_hi20 (sym). */ RELOC_NUMBER (R_LARCH_TLS_GD_HI20, 98) +/* For eh_frame and debug info. */ +RELOC_NUMBER (R_LARCH_32_PCREL, 99) + /* RELAX. */ -RELOC_NUMBER (R_LARCH_RELAX, 99) +RELOC_NUMBER (R_LARCH_RELAX, 100) END_RELOC_NUMBERS (R_LARCH_count) -- cgit v1.1