as & readelf "Error: Cannot stat input file no.elf" style message

Nick Clifton nickc@redhat.com
Fri Oct 24 10:18:00 GMT 2003


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




More information about the Binutils mailing list