* [U-Boot] QUESTION: How do I generate an assembly listing?
@ 2009-05-06 22:11 Jonathan Haws
2009-05-06 22:43 ` Wolfgang Denk
2009-05-07 12:13 ` Jerry Van Baren
0 siblings, 2 replies; 3+ messages in thread
From: Jonathan Haws @ 2009-05-06 22:11 UTC (permalink / raw)
To: u-boot
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.
Can this easily be done?
--
Jonathan R. Haws
Electrical Engineering
Space Dynamics Laboratory
Jonathan.Haws at sdl.usu.edu
(435)797-4629
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] QUESTION: How do I generate an assembly listing?
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
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2009-05-06 22:43 UTC (permalink / raw)
To: u-boot
Dear Jonathan Haws,
In message <BB99A6BA28709744BF22A68E6D7EB51F01CB587366@midas.usurf.usu.edu> you 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.
>
> Can this easily be done?
Use objdump -SD u-boot ? on the other hand - why would anybody need
that? Don't you know how to use gdb?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Wisdom is one of the few things that looks bigger the further away it
is. - Terry Pratchett, _Witches Abroad_
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] QUESTION: How do I generate an assembly listing?
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
1 sibling, 0 replies; 3+ messages in thread
From: Jerry Van Baren @ 2009-05-07 12:13 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-07 12:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox