This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ELF error return on reloc size mismatch
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Mon, 21 Jan 2008 14:23:31 +1030
- Subject: ELF error return on reloc size mismatch
bfd_error_wrong_object_format is for objects within archives.
* elflink.c (_bfd_elf_link_output_relocs): Correct error return.
Index: bfd/elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.293
diff -u -p -r1.293 elflink.c
--- bfd/elflink.c 15 Jan 2008 07:25:48 -0000 1.293
+++ bfd/elflink.c 19 Jan 2008 13:02:42 -0000
@@ -2321,7 +2321,7 @@ _bfd_elf_link_output_relocs (bfd *output
(*_bfd_error_handler)
(_("%B: relocation size mismatch in %B section %A"),
output_bfd, input_section->owner, input_section);
- bfd_set_error (bfd_error_wrong_object_format);
+ bfd_set_error (bfd_error_wrong_format);
return FALSE;
}
--
Alan Modra
Australia Development Lab, IBM