This is the mail archive of the binutils@sourceware.org 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]

Re: RFC: Disassembling from a symbol


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".


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