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]

PATCH: PR binutils/11130: Bad objopy error message


Hi,

I got

On Linux/x86-64, I got

[hjl@gnu-6 binutils]$ objcopy -O elf64-l1om /bin/ls ls      
objcopy: Warning: Output file cannot represent architecture
`i386:x86-64'
[hjl@gnu-6 binutils]$ echo $?
1
[hjl@gnu-6 binutils]$ 

It is an error, not a warning. This patch removes "Warning: " from error
message. OK to install?

Thanks.


H.J.
---
2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/11130
	* objcopy.c (copy_object): Remove "Warning: " from error
	message.

diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index bd8dcec..73f0fd3 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -1481,7 +1481,7 @@ copy_object (bfd *ibfd, bfd *obfd, const bfd_arch_info_type *input_arch)
 	non_fatal (_("Unable to recognise the format of the input file `%s'"),
 		   bfd_get_archive_filename (ibfd));
       else
-	non_fatal (_("Warning: Output file cannot represent architecture `%s'"),
+	non_fatal (_("Output file cannot represent architecture `%s'"),
 		   bfd_printable_arch_mach (bfd_get_arch (ibfd),
 					    bfd_get_mach (ibfd)));
       return FALSE;


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