This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: PR binutils/11130: Bad objopy error message
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Mon, 4 Jan 2010 09:53:34 -0800
- Subject: PATCH: PR binutils/11130: Bad objopy error message
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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;