nm and objdump when no symbols

Alan Modra amodra@bigpond.net.au
Sat Aug 10 00:39:00 GMT 2002

nm and objdump both display "filename: no symbols" to stderr when
given an object without any syms.  Why?  In particular, why print
to stderr?  I propose changing the behaviour to printing the "no
symbols" message only when a symbol table dump is requested, and
printing the message to stdout.  Objections?

i686-aout target gas test results:
/tmp/aout/gas/testsuite/../../binutils/objdump  -dw -mi8086 dump.o > dump.out
/tmp/aout/gas/testsuite/../../binutils/objdump: dump.o: no symbols
FAIL: i386 intel16

Alan Modra
IBM OzLabs - Linux Technology Centre

More information about the Binutils mailing list