ELF error return on reloc size mismatch

Alan Modra amodra@bigpond.net.au
Tue Jan 22 19:12:00 GMT 2008


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



More information about the Binutils mailing list