objdump command to disassemble raw MIPS binary

Maciej W. Rozycki macro@linux-mips.org
Mon Aug 6 10:38:00 GMT 2018


On Mon, 6 Aug 2018, Nick Clifton wrote:

> You might also find the disassembler's  --source option helpful.  This displays
> the source code intermixed with the disassembly, which can help you narrow down
> where a variable is actually used.

 Which however will not work with the "binary" BFD, as all the debug data 
necessary for the `--source' option to work will have been removed in the 
conversion of the original executable to the raw binary format (if it was 
generated in the first place, that is).

 Contrariwise, if the original ELF binary is available, then the option 
might of course work if `objdump' is used with that original binary.  You 
need to have the matching sources available too as these are not embedded
in binaries created.

 HTH,

  Maciej



More information about the Binutils mailing list