This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]