From: H.J. Lu Date: Fri, 31 Aug 2001 21:41:10 +0000 (+0000) Subject: 2001-08-31 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6140b3b903cb5f99180280ecb0e22b1e0a49daa3;p=binutils-gdb.git 2001-08-31 H.J. Lu * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename with bad relocation. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8fe425034b4..25083b1a7fe 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-08-31 H.J. Lu + + * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename + with bad relocation. + 2001-08-31 Eric Christopher Jason Eckhardt diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index a1d7205b986..9ba61f0be6f 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; }