objdump command to disassemble raw MIPS binary

Nick Clifton nickc@redhat.com
Fri Aug 3 10:24:00 GMT 2018


Hi Alex,

> $ mips-linux-gnu-objdump -D -b binary bootloader.bin
> mips-linux-gnu-objdump: can't disassemble for architecture UNKNOWN!

Try adding the -m option to tell objdump that the binary file contains
mips machine instructions.  ie:

  mips-linux-gnu-objdump -D -b binary -m mips bootloader.bin

Cheers
  Nick




More information about the Binutils mailing list