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: objdump command to disassemble raw MIPS binary


Hi Nick,

This command works, thanks for the tips.

What additional switches can be used to get disassembled output with more detalization?
(for example, more easily to determine memory location of a specific local variable)


Regards,
Alex
--------------------------------------------
On Fri, 8/3/18, Nick Clifton <nickc@redhat.com> wrote:

 Subject: Re: objdump command to disassemble raw MIPS binary
 To: "A.W.C." <bluestream@ymail.com>, binutils@sourceware.org
 Date: Friday, August 3, 2018, 1:24 PM
 
 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
 
 
 


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