From: Andreas Schwab Date: Wed, 31 Jul 2024 13:03:35 +0000 (+0200) Subject: backends/riscv: Remove unused relocations X-Git-Tag: elfutils-0.192~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46c5c98ee7ce2108f51ca8ecb0e81d55797c8470;p=thirdparty%2Felfutils.git backends/riscv: Remove unused relocations None of these relocations were ever part of any object file. The GNU_VTINHERIT and GNU_VTINHERIT relocations were part of the obsolete --gc-sections support which was never implemented for RISC-V. The other relocations are only used internally by libbfd during the relaxation pass and eliminated before writing the object file. * riscv_reloc.def: Remove GNU_VTINHERIT, GNU_VTENTRY, RVC_LUI, GPREL_I, GPREL_S, TPREL_I, TPREL_S. --- diff --git a/backends/riscv_reloc.def b/backends/riscv_reloc.def index f52f6489..adae83ce 100644 --- a/backends/riscv_reloc.def +++ b/backends/riscv_reloc.def @@ -64,16 +64,9 @@ RELOC_TYPE (SUB8, REL) RELOC_TYPE (SUB16, REL) RELOC_TYPE (SUB32, REL) RELOC_TYPE (SUB64, REL) -RELOC_TYPE (GNU_VTINHERIT, REL) -RELOC_TYPE (GNU_VTENTRY, REL) RELOC_TYPE (ALIGN, REL) RELOC_TYPE (RVC_BRANCH, REL) RELOC_TYPE (RVC_JUMP, REL) -RELOC_TYPE (RVC_LUI, REL) -RELOC_TYPE (GPREL_I, REL) -RELOC_TYPE (GPREL_S, REL) -RELOC_TYPE (TPREL_I, REL) -RELOC_TYPE (TPREL_S, REL) RELOC_TYPE (RELAX, REL) RELOC_TYPE (SUB6, REL) RELOC_TYPE (SET6, REL)