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,

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.


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