bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objdump -T exits with 0 even when no symbol table


From: Alan Modra
Subject: Re: objdump -T exits with 0 even when no symbol table
Date: Fri, 26 Mar 2004 14:54:18 +1030
User-agent: Mutt/1.4i

On Thu, Mar 25, 2004 at 12:27:54PM +0100, Skyscraper System Administrator wrote:
> If it doesn't interfere with other behaviour, it
> would be nice if 'objdump -T foo' would exit with
> a non-zero value when foo contains no symbol table.

I think this would be inappropriate.  Non-zero values usually indicate
an error of some sort, unless the program being run is a predicate, like
"test".

You can easily write a little shell script wrapper to return a non-zero
status if objdump prints "no symbols".

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre




reply via email to

[Prev in Thread] Current Thread [Next in Thread]