[2/8] bfd/mn10300: drop BFD_RELOC_MN10300_*_PCREL

Message ID 52edf7a5-2967-4bce-8ed4-dbb4837e66e1@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-arm success Build passed
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 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:50 a.m. UTC
  They're unused.
  

Comments

Alexandre Oliva April 30, 2026, 4:20 a.m. UTC | #1
On Mar 13, 2026, Jan Beulich <jbeulich@suse.com> wrote:

> They're unused.

Ok, thanks
  

Patch

--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -3814,14 +3814,6 @@  enum bfd_reloc_code_real
   BFD_RELOC_MN10300_TLS_DTPOFF,
   BFD_RELOC_MN10300_TLS_TPOFF,
 
-  /* This is a 32bit pcrel reloc for the mn10300, offset by two bytes in
-     the instruction.  */
-  BFD_RELOC_MN10300_32_PCREL,
-
-  /* This is a 16bit pcrel reloc for the mn10300, offset by two bytes in
-     the instruction.  */
-  BFD_RELOC_MN10300_16_PCREL,
-
   /* i386/elf relocations.  */
   BFD_RELOC_386_GOT32,
   BFD_RELOC_386_PLT32,
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -1406,8 +1406,6 @@  static const char *const bfd_reloc_code_
   "BFD_RELOC_MN10300_TLS_DTPMOD",
   "BFD_RELOC_MN10300_TLS_DTPOFF",
   "BFD_RELOC_MN10300_TLS_TPOFF",
-  "BFD_RELOC_MN10300_32_PCREL",
-  "BFD_RELOC_MN10300_16_PCREL",
   "BFD_RELOC_386_GOT32",
   "BFD_RELOC_386_PLT32",
   "BFD_RELOC_386_GOTOFF",
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -2316,16 +2316,6 @@  ENUMX
   BFD_RELOC_MN10300_TLS_TPOFF
 ENUMDOC
   Various TLS-related relocations.
-ENUM
-  BFD_RELOC_MN10300_32_PCREL
-ENUMDOC
-  This is a 32bit pcrel reloc for the mn10300, offset by two bytes in
-  the instruction.
-ENUM
-  BFD_RELOC_MN10300_16_PCREL
-ENUMDOC
-  This is a 16bit pcrel reloc for the mn10300, offset by two bytes in
-  the instruction.
 
 ENUM
   BFD_RELOC_386_GOT32