public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] objdump for binary file
@ 2001-08-21 12:23 Trenton D. Adams
  2001-08-21 12:33 ` Grant Edwards
  0 siblings, 1 reply; 13+ messages in thread
From: Trenton D. Adams @ 2001-08-21 12:23 UTC (permalink / raw)
  To: 'eCos Discussion'

I compiled an eCos program and then copied it to a binary file.  Is
there a way of dumping the assembly now?  I've tried the command below,
but it doesn't work.

$ arm-elf-objdump.exe -b binary -D -mcpu=arm7tdmi test.bin

test.bin:     file format binary

arm-elf-objdump.exe: test.bin: no symbols
arm-elf-objdump.exe: Can't use supplied machine cpu=arm7tdmi



Trenton D. Adams
Extreme Engineering
#17, 6025 - 12 St. SE
Calgary, Alberta, Canada
T2H 2K1

Phone: 403 640 9494 ext-208
Fax: 403 640 9599

http://www.extremeeng.com

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [ECOS] objdump for binary file
@ 2001-08-27  8:02 Andre Asselin
  0 siblings, 0 replies; 13+ messages in thread
From: Andre Asselin @ 2001-08-27  8:02 UTC (permalink / raw)
  To: ecos-discuss

>----- Message from Grant Edwards <grante@visi.com> on Tue, 21 Aug 2001
15:30:05 -0500 -----

>>On Tue, Aug 21, 2001 at 02:05:18PM -0600, Trenton D. Adams wrote:

>> > > I compiled an eCos program and then copied it to a binary file.
>> > > Is there a way of dumping the assembly now?
>> >
>> > No.
>> >
>> > Run arm-elf-objdump --source on the ELF file.

>> Ok, if the arm-elf tools can't do it, how would I do it?

>It can be done by converting the file back into ELF format.

>> I want to reverse engineer a driver for the PCMCIA controller
>> I'm using.  I think it's in plain binary form, but I'm not
>> sure.

>You've got an eCos program in binary-only and you need to
>reverse-engineer it?  Ouch.

>Have you reverse-engineered machine-level stuff before? You
>probably need to find a good interactive disassembler that lets
>you annotate stuff as you figure it out. I don't know of any
>for ARM.

The best interactive disassembler I've found is IDA Pro (see
http://www.datarescue.com/idabase/ida.htm ).  At $300 for the standard
version, which includes ARM and many other processor architectures, its a
bargain.  I've used it on 386, 6800, and 68000 code, and its been
fantastic.

Andre Asselin
IBM ServeRAID Software Development
Research Triangle Park, NC

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-08-27  8:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-21 12:23 [ECOS] objdump for binary file Trenton D. Adams
2001-08-21 12:33 ` Grant Edwards
2001-08-21 13:02   ` Jonathan Larmour
2001-08-21 13:07     ` Trenton D. Adams
2001-08-21 13:08       ` Jonathan Larmour
2001-08-21 13:20         ` Trenton D. Adams
2001-08-21 13:22     ` Grant Edwards
2001-08-21 13:27       ` Trenton D. Adams
2001-08-21 13:32         ` Grant Edwards
2001-08-21 14:02           ` Trenton D. Adams
2001-08-21 13:05   ` Trenton D. Adams
2001-08-21 13:28     ` Grant Edwards
2001-08-27  8:02 Andre Asselin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).