This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Improved elf linker error message
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Tue, 14 May 2002 15:39:36 +0200
- Subject: [PATCH] Improved elf linker error message
Hi All,
this improves the error message when someone tries to link together
object files with different relocation sizes.
Thiemo
2002-05-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/bfd/ChangeLog
* elflink.h (elf_link_output_relocs): Improve error message.
diff -BurpNX /bigdisk/src/binutils-exclude source-orig/bfd/elflink.h source/bfd/elflink.h
--- source-orig/bfd/elflink.h Fri May 10 21:34:03 2002
+++ source/bfd/elflink.h Sat May 11 03:41:28 2002
@@ -6283,6 +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;
}
+ else
+ {
+ (*_bfd_error_handler) (
+ _("%s: relocation size mismatch in %s section %s"),
+ bfd_get_filename (output_bfd),
+ bfd_get_filename (input_section->owner),
+ input_section->name);
+ abort();
+ }
BFD_ASSERT (output_rel_hdr != NULL);