[binutils-gdb/binutils-2_47-branch] Re: bfd/ELF: fold BFD_RELOC_<arch>_GOTOFF*
Alan Modra via Binutils-cvs <[email protected]> Sun, 12 Jul 2026 12:28:15 +0000 (GMT)
| Newsgroups | gmane.comp.gnu.binutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bf76f85df91cd581b05f7c8725aa95953f1f9bc5 commit bf76f85df91cd581b05f7c8725aa95953f1f9bc5 Author: Alan Modra <[email protected]> Date: Sun Jul 12 21:43:19 2026 +0930 Re: bfd/ELF: fold BFD_RELOC_<arch>_GOTOFF* Commit 705b90feb82c missed updating some frv and lm32 source files, resulting in build breakage if generated files in opcodes/ are regenerated. (cherry picked from commit fb66599b4d0b97fc14242f3c7a6f04a5821ca36a) Diff: --- cpu/frv.opc | 6 +++--- cpu/lm32.opc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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 `)'");