diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-08-31 21:41:10 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-08-31 21:41:10 +0000 |
commit | 6140b3b903cb5f99180280ecb0e22b1e0a49daa3 (patch) | |
tree | 936a122f4852c4f9006d2012adc67ec6a33dd83f /bfd | |
parent | 39e5585e1be5aa8bf2989d8f104d8b21fd0dbfbc (diff) | |
download | gdb-6140b3b903cb5f99180280ecb0e22b1e0a49daa3.zip gdb-6140b3b903cb5f99180280ecb0e22b1e0a49daa3.tar.gz gdb-6140b3b903cb5f99180280ecb0e22b1e0a49daa3.tar.bz2 |
2001-08-31 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
with bad relocation.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-mips.c | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8fe4250..25083b1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-08-31 H.J. Lu <hjl@gnu.org> + + * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename + with bad relocation. + 2001-08-31 Eric Christopher <echristo@redhat.com> Jason Eckhardt <jle@redhat.com> diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index a1d7205..9ba61f0 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -7724,8 +7724,15 @@ _bfd_mips_elf_check_relocs (abfd, info, sec, relocs) h = NULL; else if (r_symndx >= extsymoff + NUM_SHDR_ENTRIES (symtab_hdr)) { - (*_bfd_error_handler) - (_("Malformed reloc detected for section %s"), name); + if (abfd->my_archive) + (*_bfd_error_handler) + (_("%s(%s) Malformed reloc detected for section %s"), + bfd_get_filename (abfd->my_archive), + bfd_get_filename (abfd), name); + else + (*_bfd_error_handler) + (_("%s: Malformed reloc detected for section %s"), + bfd_get_filename (abfd), name); bfd_set_error (bfd_error_bad_value); return false; } |