[PATCH 1/8] bfd/mcore: drop BFD_RELOC_MCORE_{PCREL_32,RVA}
Jan Beulich
jbeulich@suse.com
Fri Mar 13 09:49:53 GMT 2026
They're unused. Really there was a bogus use in the assembler: If the
type isn't used anywhere else, the case label was stale (in one of two
ways; assume it was missed during some earlier conversion, with the
alternative being that it should be dropped altogether).
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -5067,9 +5067,7 @@ enum bfd_reloc_code_real
BFD_RELOC_MCORE_PCREL_IMM8BY4,
BFD_RELOC_MCORE_PCREL_IMM11BY2,
BFD_RELOC_MCORE_PCREL_IMM4BY2,
- BFD_RELOC_MCORE_PCREL_32,
BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2,
- BFD_RELOC_MCORE_RVA,
/* Toshiba Media Processor Relocations. */
BFD_RELOC_MEP_8,
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -2213,9 +2213,7 @@ static const char *const bfd_reloc_code_
"BFD_RELOC_MCORE_PCREL_IMM8BY4",
"BFD_RELOC_MCORE_PCREL_IMM11BY2",
"BFD_RELOC_MCORE_PCREL_IMM4BY2",
- "BFD_RELOC_MCORE_PCREL_32",
"BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2",
- "BFD_RELOC_MCORE_RVA",
"BFD_RELOC_MEP_8",
"BFD_RELOC_MEP_16",
"BFD_RELOC_MEP_32",
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -4424,11 +4424,7 @@ ENUMX
ENUMX
BFD_RELOC_MCORE_PCREL_IMM4BY2
ENUMX
- BFD_RELOC_MCORE_PCREL_32
-ENUMX
BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2
-ENUMX
- BFD_RELOC_MCORE_RVA
ENUMDOC
Motorola Mcore relocations.
--- a/gas/config/tc-mcore.c
+++ b/gas/config/tc-mcore.c
@@ -2015,7 +2015,7 @@ md_apply_fix (fixS * fixP,
fixP->fx_done = 0;
break;
- case BFD_RELOC_MCORE_PCREL_32:
+ case BFD_RELOC_32_PCREL:
case BFD_RELOC_VTABLE_INHERIT:
case BFD_RELOC_VTABLE_ENTRY:
fixP->fx_done = 0;
More information about the Binutils
mailing list