[U-Boot] QUESTION: How do I generate an assembly listing?
Jerry Van Baren
gerald.vanbaren at ge.com
Thu May 7 14:13:31 CEST 2009
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
More information about the U-Boot
mailing list