This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

nm and objdump when no symbols


> > > I think that error messages should be sent to stderr and not stdout.
> >
> > Agreed.  This message isn't an error.
>
> Welllll maybe. ...

Especially for 'nm',
I'm in favor of "no special treatment for an empty set".  If you ask
for symbols but there are no symbols, then you should get an empty
output on stdout.  This greatly helps when constructing pipelines
to perform other tasks, and 'nm' is the source for many pipelines.
Kibitzing ("There are no symbols.") belongs on stderr, and malformed
input should return a non-zero exit status.  [A properly-described
empty set is not malformed.]

--
John Reiser, jreiser@BitWagon.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]