This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: objdump command to disassemble raw MIPS binary
- From: "A.W.C. via binutils" <binutils at sourceware dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: <binutils at sourceware dot org>
- Date: Fri, 3 Aug 2018 18:29:45 +0000 (UTC)
- Subject: Re: objdump command to disassemble raw MIPS binary
- References: <1993250192.1738004.1533320985427.ref@mail.yahoo.com>
- Reply-to: "A.W.C." <bluestream at ymail dot com>
- Reply-to: "A.W.C." <bluestream at ymail dot com>
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