aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-04-30 15:57:41 +0100
committerNick Clifton <nickc@redhat.com>2015-04-30 15:57:41 +0100
commit153a27763ccc9979fdb5f342e21eb1666c8f117b (patch)
treea8527ca767cce41501cb074adc94703df6cdd05d /bfd
parent914082d11b5de9509491615cce448ce937e91515 (diff)
downloadgdb-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')
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/elf32-mep.c19
2 files changed, 8 insertions, 18 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 51ef196..4dc878e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -3,6 +3,13 @@
* elf32-i386.c (elf_backend_post_process_headers): Undef for
Solaris 2.
+2015-04-30 Nick Clifton <nickc@redhat.com>
+
+ PR 18317
+ * elf32-mep.c (MEPREL): Use bfd_elf_generic_reloc instead of
+ mep_reloc.
+ (mep_reloc): Delete unused function.
+
2015-04-29 Nick Clifton <nickc@redhat.com>
PR 17099
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