bfd/ELF: fold BFD_RELOC_<arch>_GOTOFF*
Alan Modra
amodra@gmail.com
Sun Jul 12 12:24:35 GMT 2026
Commit 705b90feb82c missed updating some frv and lm32 source files,
resulting in build breakage if generated files in opcodes/ are
regenerated.
I'm pushing this one to the 2.47 branch too.
diff --git a/cpu/frv.opc b/cpu/frv.opc
index 54acb9c902a..e534a93cb54 100644
--- a/cpu/frv.opc
+++ b/cpu/frv.opc
@@ -1135,7 +1135,7 @@ parse_ulo16 (CGEN_CPU_DESC cd,
{
*strp += 10;
errmsg = parse_symbolic_address (cd, strp, opindex,
- BFD_RELOC_FRV_GOTOFFLO,
+ BFD_RELOC_LO16_GOTOFF,
& result_type, & value);
if (**strp != ')')
return "missing ')'";
@@ -1261,7 +1261,7 @@ parse_uslo16 (CGEN_CPU_DESC cd,
{
*strp += 10;
errmsg = parse_symbolic_address (cd, strp, opindex,
- BFD_RELOC_FRV_GOTOFFLO,
+ BFD_RELOC_LO16_GOTOFF,
& result_type, & value);
if (**strp != ')')
return "missing ')'";
@@ -1394,7 +1394,7 @@ parse_uhi16 (CGEN_CPU_DESC cd,
{
*strp += 10;
errmsg = parse_symbolic_address (cd, strp, opindex,
- BFD_RELOC_FRV_GOTOFFHI,
+ BFD_RELOC_HI16_GOTOFF,
& result_type, & value);
if (**strp != ')')
return "missing ')'";
diff --git a/cpu/lm32.opc b/cpu/lm32.opc
index 3a814c2e03c..fd0ae45f109 100644
--- a/cpu/lm32.opc
+++ b/cpu/lm32.opc
@@ -189,7 +189,7 @@ parse_gotoff_hi16 (CGEN_CPU_DESC cd,
bfd_vma value;
*strp += 11;
- errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LM32_GOTOFF_HI16,
+ errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_HI16_GOTOFF,
& result_type, & value);
if (**strp != ')')
return _("missing `)'");
@@ -219,7 +219,7 @@ parse_gotoff_lo16 (CGEN_CPU_DESC cd,
bfd_vma value;
*strp += 11;
- errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LM32_GOTOFF_LO16,
+ errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LO16_GOTOFF,
&result_type, &value);
if (**strp != ')')
return _("missing `)'");
--
Alan Modra
More information about the Binutils
mailing list