diff options
author | Nick Clifton <nickc@redhat.com> | 2005-02-11 17:15:32 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-02-11 17:15:32 +0000 |
commit | 6c408f53b0ea91d28c9e1b06e1e3c2ea8c76c042 (patch) | |
tree | a9e71873fa6f611526bc05c5dd46c1783db5e0d1 /bfd | |
parent | 596c83ecf6721933e7cfbec8e3e5615f83c147b4 (diff) | |
download | binutils-6c408f53b0ea91d28c9e1b06e1e3c2ea8c76c042.zip binutils-6c408f53b0ea91d28c9e1b06e1e3c2ea8c76c042.tar.gz binutils-6c408f53b0ea91d28c9e1b06e1e3c2ea8c76c042.tar.bz2 |
(iq2000_reloc_map): Remove unused structure and array.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 3 | ||||
-rw-r--r-- | bfd/elf32-iq2000.c | 26 |
2 files changed, 5 insertions, 24 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d79aa24..168d9ca 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -35,6 +35,9 @@ * elf32-ip2k.c (ip2k_call_opcode, IS_CALL_OPCODE): Remove unused structure and macro. + * elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and + array. + 2005-02-12 Alan Modra <amodra@bigpond.net.au> * elf64-ppc.c (toc_adjusting_stub_needed): Return true for diff --git a/bfd/elf32-iq2000.c b/bfd/elf32-iq2000.c index 5bc51aa..a803e0b 100644 --- a/bfd/elf32-iq2000.c +++ b/bfd/elf32-iq2000.c @@ -234,30 +234,6 @@ static reloc_howto_type iq2000_elf_vtentry_howto = FALSE); /* pcrel_offset */ -/* Map BFD reloc types to IQ2000 ELF reloc types. */ - -struct iq2000_reloc_map -{ - bfd_reloc_code_real_type bfd_reloc_val; - unsigned int iq2000_reloc_val; -}; - -static const struct iq2000_reloc_map iq2000_reloc_map [] = -{ - { BFD_RELOC_NONE, R_IQ2000_NONE }, - { BFD_RELOC_16, R_IQ2000_16 }, - { BFD_RELOC_32, R_IQ2000_32 }, - { BFD_RELOC_MIPS_JMP, R_IQ2000_26 }, - { BFD_RELOC_16_PCREL_S2, R_IQ2000_PC16 }, - { BFD_RELOC_HI16, R_IQ2000_HI16 }, - { BFD_RELOC_LO16, R_IQ2000_LO16 }, - { BFD_RELOC_IQ2000_OFFSET_16,R_IQ2000_OFFSET_16 }, - { BFD_RELOC_IQ2000_OFFSET_21,R_IQ2000_OFFSET_21 }, - { BFD_RELOC_IQ2000_UHI16, R_IQ2000_UHI16 }, - { BFD_RELOC_VTABLE_INHERIT, R_IQ2000_GNU_VTINHERIT }, - { BFD_RELOC_VTABLE_ENTRY, R_IQ2000_GNU_VTENTRY }, -}; - static bfd_reloc_status_type iq2000_elf_howto_hi16_reloc (bfd *abfd ATTRIBUTE_UNUSED, arelent *reloc_entry, @@ -329,6 +305,8 @@ iq2000_elf_relocate_hi16 (bfd *input_bfd, return bfd_reloc_ok; } +/* Map BFD reloc types to IQ2000 ELF reloc types. */ + static reloc_howto_type * iq2000_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED, bfd_reloc_code_real_type code) |