This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: as & readelf "Error: Cannot stat input file no.elf" stylemessage
- From: Nick Clifton <nickc at redhat dot com>
- To: "J. Grant" <jg-lists at jguk dot org>
- Cc: binutils <binutils at sources dot redhat dot com>
- Date: Fri, 07 Nov 2003 12:22:12 +0000
- Subject: Re: as & readelf "Error: Cannot stat input file no.elf" stylemessage
- References: <3F96F7FE.2070600@jguk.org> <m3y8vblzdj.fsf@redhat.com><3FAAE5BB.8070309@jguk.org>
Hi J.G.
> 2003-10-25 Jonathan R. Grant <jg-binutils@jguk.org>
>
> * binutils/addr2line.c: Use "No such file" error message.
> * binutils/ar.c: Ditto (ar).
> * binutils/ar.c: Ditto (ranlib).
> * binutils/nm.c: Ditto.
> * binutils/objcopy.c: Ditto (objcopy).
> * binutils/objcopy.c: Ditto (strip).
> * binutils/objdump.c: Ditto.
> * binutils/readelf.c: Ditto.
> * binutils/size.c: Ditto.
> * binutils/strings.c: Ditto.
> * gas/input-file.c: Ditto
> * ld/ldfile.c: Ditto.
Thanks - I have applied this patch with a few modifications:
* I moved the stat() code into bucomm.c and then called this
function from the other files in the binutils/ directory. This
reduced code duplication.
* I divided the ChangeLog up into separate entries for the
binutils, gas and ld directories.
* I added code to detect and complain about directories being given
as a filename.
Cheers
Nick