]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
backends/riscv: Remove unused relocations
authorAndreas Schwab <schwab@suse.de>
Wed, 31 Jul 2024 13:03:35 +0000 (15:03 +0200)
committerAaron Merey <amerey@redhat.com>
Wed, 7 Aug 2024 13:47:49 +0000 (09:47 -0400)
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.

backends/riscv_reloc.def

index f52f6489e3c72c885234ce78cb90b21292bbe342..adae83ce0bef542533ba9aa49130375a2beb42e3 100644 (file)
@@ -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)