]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/s12z: put relocations next to each other
authorJan Beulich <jbeulich@suse.com>
Mon, 15 Dec 2025 10:29:54 +0000 (11:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Dec 2025 10:29:54 +0000 (11:29 +0100)
It's not helpful to have two separate "sections", each with a single
relocation.

bfd/bfd-in2.h
bfd/libbfd.h
bfd/reloc.c

index c9360bd917a2bfce548482b1674f91665a12c3c8..afd33b529a47aff8f54d229f87d0fb42ede67bed 100644 (file)
@@ -5816,11 +5816,6 @@ enum bfd_reloc_code_real
      follows a matching LO8XG part.  */
   BFD_RELOC_M68HC12_HI8XG,
 
-  /* Freescale S12Z reloc.
-     This is a 15 bit relative address.  If the most significant bits are
-     all zero then it may be truncated to 8 bits.  */
-  BFD_RELOC_S12Z_15_PCREL,
-
   /* NS CR16 Relocations.  */
   BFD_RELOC_CR16_NUM8,
   BFD_RELOC_CR16_NUM16,
@@ -7197,9 +7192,13 @@ enum bfd_reloc_code_real
   BFD_RELOC_CKCORE_PCREL_BLOOP_IMM4BY4,
   BFD_RELOC_CKCORE_PCREL_BLOOP_IMM12BY4,
 
-  /* S12Z relocations.  */
+  /* Freescale S12Z relocations.  */
   BFD_RELOC_S12Z_OPR,
 
+  /* This is a 15 bit relative address.  If the most significant bits are
+     all zero then it may be truncated to 8 bits.  */
+  BFD_RELOC_S12Z_15_PCREL,
+
   /* LARCH relocations.  */
   BFD_RELOC_LARCH_TLS_DTPMOD32,
   BFD_RELOC_LARCH_TLS_DTPREL32,
index d61e02a882cc212e9388e92c4ebf5d17a72d4665..ab131d3fb4e526e98dc40096df04ae9577d4a55f 100644 (file)
@@ -2616,7 +2616,6 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
   "BFD_RELOC_M68HC12_10_PCREL",
   "BFD_RELOC_M68HC12_LO8XG",
   "BFD_RELOC_M68HC12_HI8XG",
-  "BFD_RELOC_S12Z_15_PCREL",
   "BFD_RELOC_CR16_NUM8",
   "BFD_RELOC_CR16_NUM16",
   "BFD_RELOC_CR16_NUM32",
@@ -3382,6 +3381,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
   "BFD_RELOC_CKCORE_PCREL_BLOOP_IMM4BY4",
   "BFD_RELOC_CKCORE_PCREL_BLOOP_IMM12BY4",
   "BFD_RELOC_S12Z_OPR",
+  "BFD_RELOC_S12Z_15_PCREL",
   "BFD_RELOC_LARCH_TLS_DTPMOD32",
   "BFD_RELOC_LARCH_TLS_DTPREL32",
   "BFD_RELOC_LARCH_TLS_DTPMOD64",
index 165060d96ce22828a4b856b94f1736d30212f4c4..8be035956b3660e0f867513ad001395f2855f647 100644 (file)
@@ -5592,12 +5592,6 @@ ENUMDOC
   Motorola 68HC12/XGATE reloc.
   This is the 8 bit high part of an absolute address and immediately
   follows a matching LO8XG part.
-ENUM
-  BFD_RELOC_S12Z_15_PCREL
-ENUMDOC
-  Freescale S12Z reloc.
-  This is a 15 bit relative address.  If the most significant bits are
-  all zero then it may be truncated to 8 bits.
 
 ENUM
   BFD_RELOC_CR16_NUM8
@@ -7768,7 +7762,12 @@ ENUMDOC
 ENUM
   BFD_RELOC_S12Z_OPR
 ENUMDOC
-  S12Z relocations.
+  Freescale S12Z relocations.
+ENUM
+  BFD_RELOC_S12Z_15_PCREL
+ENUMDOC
+  This is a 15 bit relative address.  If the most significant bits are
+  all zero then it may be truncated to 8 bits.
 
 ENUM
   BFD_RELOC_LARCH_TLS_DTPMOD32