Is -dis-symname supported by binutils?

Nick Clifton nickc@redhat.com
Mon Jan 14 17:31:00 GMT 2019


Hi Peng,


> llvm-objdump supports -dis-symname. Which is quite convenient? Does
> binutils offer similar functionality? I don't see binutils' objdump
> supports it. Thanks.

Yes it does :-)

The code was only recently added to the binutils however, and it is
not yet in any official release.  (It will be in the 2.32 release
which should happen soon).  

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.

Cheers
  Nick



More information about the Binutils mailing list