RFC: Disassembling from a symbol

Nick Clifton nickc@redhat.com
Mon Jan 21 15:59:00 GMT 2019


Hi Michael,

> 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 ?

Cheers
  Nick

PS.  Just to be clear the "next symbol" in this context means that next
symbol that objdump would display whilst disassembling.  Objdump 
automatically skips over certain symbols, like the ARM mapping state
symbols and assembler local symbols.  So these would not be considered
as the "next symbol".



More information about the Binutils mailing list