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, 24 Oct 2003 11:10:48 +0100
- Subject: Re: as & readelf "Error: Cannot stat input file no.elf" stylemessage
- References: <3F96F7FE.2070600@jguk.org>
Hi J.G.
> I noticed the /readelf/ and /as/ had a different message from
> objdump, nm, objcopy, strings and strip; when the file passed as an
> argument does not exist.
>
> I was going to make a patch, to amend /readelf/ and /as/ to be the
> same as the other programs when wondered if directories are valid
> arguments to these programs?
>
> I can make a patch to change /readelf/ and /as/ to the "strings: No
> such file or directory" style message. Or if as I think, the
> directory part of the message is not relevant I can make patch to
> change all of the programs to "strings: No such file" style
> messages. (e.g. "[nm test] results in [nm: test: Is a directory] as
> it as at present".
>
> Would a patch to change these be desired?
Please alter strings et al. It does not make sense to run these
programs on a directory, so having an error message imply that it is
OK is a bad thing.
Cheers
Nick