Hi,

Jerry Van Baren schrieb:
> Avinash Vijayvergia wrote:
>> Hi All
>>
>> I had a question which is trivial but I couldn't find an answer to it. 
>> Can anyone tell me how do I generate a list file from gcc compiler or 
>> even preferred is listing with the interspersed C code.
>>
>> Thanks
>> Avinash
> 
> If I understand your question, I think you are asking for a disassembly 
> output:
>    objdump -d
> or, better, a disassembly interspersed with source:
>    objdump -S
> 
> <http://www.delorie.com/gnu/docs/binutils/binutils_6.html>

The following works for me, too:

diff --git a/config.mk b/config.mk
index 22d3398..b6ad763 100644
--- a/config.mk
+++ b/config.mk
@@ -237,7 +237,7 @@ ifndef REMOTE_BUILD
  %.o:  %.S
        $(CC) $(AFLAGS) -c -o $@ $<
  %.o:  %.c
-       $(CC) $(CFLAGS) -c -o $@ $<
+       $(CC) $(CFLAGS) -Wa,-ahlncds=$(subst .o,.lst,$@) -c -o $@ $<

But Jerry's solution is better in that you don't have to recompile the 
U-Boot, right?

Best Regards
Jens

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to