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: Is -dis-symname supported by binutils?


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


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