[binutils-gdb] bfd/mcore: drop BFD_RELOC_MCORE_{PCREL_32,RVA}
Jan Beulich via Binutils-cvs <[email protected]>
| Newsgroups | gmane.comp.gnu.binutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4a1a4ff06885c72e77085f97c2e98b975ea5b48f commit 4a1a4ff06885c72e77085f97c2e98b975ea5b48f Author: Jan Beulich <[email protected]> Date: Fri Mar 27 10:35:24 2026 +0100 bfd/mcore: drop BFD_RELOC_MCORE_{PCREL_32,RVA} 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). Diff: --- bfd/bfd-in2.h | 2 -- bfd/libbfd.h | 2 -- bfd/reloc.c | 4 ---- gas/config/tc-mcore.c | 2 +- 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index bcec515e8be..d2b5af5e15c 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -5119,9 +5119,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, diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 74c0fe026f0..d66df5286f9 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -2253,9 +2253,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", "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", diff --git a/bfd/reloc.c b/bfd/reloc.c index 98343696a33..60b165f49ce 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -4423,12 +4423,8 @@ ENUMX BFD_RELOC_MCORE_PCREL_IMM11BY2 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. diff --git a/gas/config/tc-mcore.c b/gas/config/tc-mcore.c index efd66ee1048..a0c3e4c5a1c 100644 --- 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;