RFC: Disassembling from a symbol

Michael Matz matz@suse.de
Mon Jan 21 23:22:00 GMT 2019


Hi,

On Mon, 21 Jan 2019, Nick Clifton wrote:

> > Anyway, I don't like the check of the symbol 
> > being a function symbol.  It can validly be a data array containing 
> > instruction bytes or an unmarked symbol,
> 
> Ah sorry, I was not clear.  The symbol *can* be any kind of symbol.
> It is just that for a non-function symbol disassembly will only continue
> until the next symbol is encountered.  For a function symbol however,
> disassembly will continue until the end of the function is reached, even
> if other symbols are encountered on they way.  
> 
> Does that make sense ?

Ah, thanks for the clarification; yes that makes sense.


Ciao,
Michael.
P.S: the restriction that only executable sections are disassembled could 
also be relaxed when a specific symbol is wanted, though that might be 
more hackery than it's worth in objdump.



More information about the Binutils mailing list