[1/8] bfd/mcore: drop BFD_RELOC_MCORE_{PCREL_32,RVA}

Message ID a6ffcae4-788b-449f-a6b4-5a8e95447345@suse.com
State New
Headers
Series bfd: another little bit of reloc enum cleanup |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_binutils_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_binutils_check--master-arm success Test passed
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 success Test passed

Commit Message

Jan Beulich March 13, 2026, 9:49 a.m. UTC
  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).
  

Patch

--- 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;