Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Robert Bu" <robert.bu@gmail.com>
To: gdb@sourceware.org
Subject: Re: trying to use gdb to disassemble a binary file
Date: Wed, 08 Aug 2007 09:06:00 -0000	[thread overview]
Message-ID: <a0319f700708080206r7ae3c7b7l57ee8cd1560782aa@mail.gmail.com> (raw)

I can get the architecture information on my MIPS by
"mips-elf-objcopy -I binary -O elf32-bigmips -B mips test.bin test.elf"

However, is that possible to designate the entrypoint(start address) for
the ELF file? The default seems to be 0x0.

> ------------------------------------------------------------------------
>
> 主题:
> RE: trying to use gdb to disassemble a binary file
> 发件人:
> "Fahd Abidi" <fabidi@ultsol.com>
> 日期:
> Mon, 06 Aug 2007 17:00:07 -0400
> 收件人:
> <gdb@sourceware.org>
>
> 收件人:
> <gdb@sourceware.org>
>
>
> Thanks to the both of you. The objdump command worked.
>
> I tried the objcopy before I emailed and converted the binary file to an
> ELF format but for some reason the architecture would not get written to
> the created elf file:
>
> PPC_440-bojcopy -I binary -O elf32-powerpc -B powerpc file file.elf
>
> trying to do an "objdump -f" showed that there was no architecture
> information copied over. Trying to disassemble this resulted in an error
> saying the architecture was unknown. Probably this was a problem with my
> tools so I won't worry about it. And it would have to go on another
> thread anyhow.
>
> Thanks again.
>
> Fahd
>
>

             reply	other threads:[~2007-08-08  9:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-08  9:06 Robert Bu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-08-08 13:10 Robert Bu
2007-08-06 21:00 Fahd Abidi
2007-08-06 18:46 Fahd Abidi
2007-08-06 18:56 ` Dave Korn
2007-08-06 19:16   ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a0319f700708080206r7ae3c7b7l57ee8cd1560782aa@mail.gmail.com \
    --to=robert.bu@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox