[PATCH] Improved elf linker error message
Thiemo Seufer
ica2_ts@csv.ica.uni-stuttgart.de
Tue May 14 06:39:00 GMT 2002
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);
More information about the Binutils
mailing list