diff options
author | Nick Clifton <nickc@redhat.com> | 2015-04-30 15:57:41 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-04-30 15:57:41 +0100 |
commit | 153a27763ccc9979fdb5f342e21eb1666c8f117b (patch) | |
tree | a8527ca767cce41501cb074adc94703df6cdd05d /bfd/elf32-mep.c | |
parent | 914082d11b5de9509491615cce448ce937e91515 (diff) | |
download | gdb-153a27763ccc9979fdb5f342e21eb1666c8f117b.zip gdb-153a27763ccc9979fdb5f342e21eb1666c8f117b.tar.gz gdb-153a27763ccc9979fdb5f342e21eb1666c8f117b.tar.bz2 |
Fix handling of relocs for the MeP target.
bfd PR 18317
* elf32-mep.c (MEPREL): Use bfd_elf_generic_reloc instead of
mep_reloc.
(mep_reloc): Delete unused function.
bin * readelf.c (get_machine_flags): Add description of MeP flags.
tests * binutils-all/objdump.exp (cpus_expected): Add MeP CPU names.
Diffstat (limited to 'bfd/elf32-mep.c')
-rw-r--r-- | bfd/elf32-mep.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/bfd/elf32-mep.c b/bfd/elf32-mep.c index 4032d2a..c791884 100644 --- a/bfd/elf32-mep.c +++ b/bfd/elf32-mep.c @@ -30,15 +30,12 @@ /* Private relocation functions. */ #define MEPREL(type, size, bits, right, left, pcrel, overflow, mask) \ - {(unsigned)type, right, size, bits, pcrel, left, overflow, mep_reloc, #type, FALSE, 0, mask, 0 } + {(unsigned)type, right, size, bits, pcrel, left, overflow, bfd_elf_generic_reloc, #type, FALSE, 0, mask, 0 } #define N complain_overflow_dont #define S complain_overflow_signed #define U complain_overflow_unsigned -static bfd_reloc_status_type mep_reloc (bfd *, arelent *, struct bfd_symbol *, - void *, asection *, bfd *, char **); - static reloc_howto_type mep_elf_howto_table [] = { /* type, size, bits, leftshift, rightshift, pcrel, OD/OS/OU, mask. */ @@ -75,20 +72,6 @@ static reloc_howto_type mep_elf_howto_table [] = #undef N #undef S #undef U - -static bfd_reloc_status_type -mep_reloc - (bfd * abfd ATTRIBUTE_UNUSED, - arelent * reloc_entry ATTRIBUTE_UNUSED, - struct bfd_symbol * symbol ATTRIBUTE_UNUSED, - void * data ATTRIBUTE_UNUSED, - asection * input_section ATTRIBUTE_UNUSED, - bfd * output_bfd ATTRIBUTE_UNUSED, - char ** error_message ATTRIBUTE_UNUSED) -{ - return bfd_reloc_ok; -} - #define BFD_RELOC_MEP_NONE BFD_RELOC_NONE |