objcopy fails silently with an empty input file
Nick Clifton
nickc@redhat.com
Thu Apr 14 09:54:00 GMT 2005
Hi Shaun,
> Thanks, Nick. The patch works, although it doesn't allow for this use case:
> $ echo -n > empty
> $ arm-elf-objcopy -I binary -O elf32-little empty empty.o; echo $?
> arm-elf-objcopy: empty: empty input file
> 0
> $ nm empty.o
> 00000000 D _binary_empty_end [...]
Strange - I do not get that behaviour:
% echo -n > empty
% objcopy -I binary -O elf32-little empty empty.o ; echo $?
objcopy: empty: empty input file
1
% nm empty.o
nm: 'empty.o': No such file
Are you sure that you applied the patch I sent correctly ?
Cheers
Nick
More information about the Binutils
mailing list