Is -dis-symname supported by binutils?

Florian Weimer fweimer@redhat.com
Mon Jan 14 21:18:00 GMT 2019


* Nick Clifton:

> If you are using the development sources however then you can invoke
> the feature by adding a symbol name to the end of the --disassemle
> option:
>
>   --disassemble=<symbol>
>
>    Display the assembler mnemonics for the machine instructions
>    from the input file.  This option only disassembles those 
>    sections which are expected to contain instructions.  If the 
>    optional <symbol> argument is given, then display the assembler 
>    mnemonics only from <symbol> up to next symbol.  If there are 
>    no matches for <symbol> then nothing will be displayed.

Nice!

Shouldn't it use the size of the symbol instead (at least on ELF)?  Or
disregard anything but function symbols for determining the next symbol?

Thanks,
Florian



More information about the Binutils mailing list