This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
objcopy fails silently with an empty input file
- From: Shaun Jackman <sjackman at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 12 Apr 2005 17:35:00 -0600
- Subject: objcopy fails silently with an empty input file
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
objcopy silently fails when the input file is empty. I'd rather it
didn't fail -- this used to work in previous versions -- but it
definitely shouldn't fail silently.
Cheers,
Shaun
$ arm-elf-objcopy --version | head -1
GNU objcopy 2.15
$ echo > not-empty
$ arm-elf-objcopy -Ibinary -Oelf32-little not-empty not-empty.o; echo $?
0
$ echo -n > empty
$ arm-elf-objcopy -Ibinary -Oelf32-little empty empty.o; echo $?
1