public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] QUESTION:  How do I generate an assembly listing?
Date: Thu, 07 May 2009 08:13:31 -0400	[thread overview]
Message-ID: <4A02D06B.7060703@ge.com> (raw)
In-Reply-To: <BB99A6BA28709744BF22A68E6D7EB51F01CB587366@midas.usurf.usu.edu>

Jonathan Haws wrote:
> I need to generate an assembly listing that contains all the assembly
> code generated by the compiler.  I have tried putting the standard
> GCC options in ppc_config.mk, but cannot get the results I am looking
> for.
> 
> What I need is a listing file that contains the address (preferably
> with _start at 0x00000000) and the function name and any assembly
> code with their respective addresses.

${CROSS_COMPILE}objdump -d <elffile>

The elf file can be unlinked or linked.

You can also use the -S switch to stop gcc at the assembly language 
output level.

> Can this easily be done?

Yes.  There are other switches available with gcc and objdump to do 
various things like interspersing the C source in with the (dis)assembly.

> --
> Jonathan R. Haws

Best regards,
gvb

      parent reply	other threads:[~2009-05-07 12:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-06 22:11 [U-Boot] QUESTION: How do I generate an assembly listing? Jonathan Haws
2009-05-06 22:43 ` Wolfgang Denk
2009-05-07 12:13 ` Jerry Van Baren [this message]

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=4A02D06B.7060703@ge.com \
    --to=gerald.vanbaren@ge.com \
    --cc=u-boot@lists.denx.de \
    /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