This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Improved elf linker error message
Alan Modra wrote:
> On Tue, May 14, 2002 at 03:39:36PM +0200, Thiemo Seufer wrote:
> > * elflink.h (elf_link_output_relocs): Improve error message.
>
> OK, but use bfd_archive_filename on the input bfd.
Is this ok?
Thiemo
2002-05-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/bfd/ChangeLog
* elflink.h (elf_link_output_relocs): Improve error message.
--- source-orig/bfd/elflink.h Fri May 10 21:34:03 2002
+++ source/bfd/elflink.h Tue May 14 17:00:59 2002
@@ -6283,8 +6283,15 @@ elf_link_output_relocs (output_bfd, inpu
output_rel_hdr = elf_section_data (output_section)->rel_hdr2;
rel_countp = &elf_section_data (output_section)->rel_count2;
}
-
- BFD_ASSERT (output_rel_hdr != NULL);
+ else
+ {
+ (*_bfd_error_handler) (
+ _("%s: relocation size mismatch in %s section %s"),
+ bfd_get_filename (output_bfd),
+ bfd_archive_filename (input_section->owner),
+ input_section->name);
+ abort();
+ }
bed = get_elf_backend_data (output_bfd);
irela = internal_relocs;