This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: elf32-mips.c: Report filename with bad relocation.


I checked in the following patch.


H.J.
----
2001-08-31  H.J. Lu  <hjl@gnu.org>

	* elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
	with bad relocation.

--- elf32-mips.c.archive	Fri Aug 31 14:08:53 2001
+++ elf32-mips.c	Fri Aug 31 14:11:52 2001
@@ -7734,8 +7734,15 @@ _bfd_mips_elf_check_relocs (abfd, info, 
 	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;
 	}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]