* [U-Boot-Users] Generate list file
@ 2008-04-09 18:33 Avinash Vijayvergia
2008-04-09 19:35 ` Jerry Van Baren
0 siblings, 1 reply; 3+ messages in thread
From: Avinash Vijayvergia @ 2008-04-09 18:33 UTC (permalink / raw)
To: u-boot
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 filefrom gcc compiler or even preferred is listing with the interspersed Ccode.
Thanks
Avinash
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080409/6cf77345/attachment.htm
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Generate list file
2008-04-09 18:33 [U-Boot-Users] Generate list file Avinash Vijayvergia
@ 2008-04-09 19:35 ` Jerry Van Baren
2008-04-10 5:39 ` Jens Gehrlein
0 siblings, 1 reply; 3+ messages in thread
From: Jerry Van Baren @ 2008-04-09 19:35 UTC (permalink / raw)
To: u-boot
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>
Best regards,
gvb
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Generate list file
2008-04-09 19:35 ` Jerry Van Baren
@ 2008-04-10 5:39 ` Jens Gehrlein
0 siblings, 0 replies; 3+ messages in thread
From: Jens Gehrlein @ 2008-04-10 5:39 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-10 5:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-09 18:33 [U-Boot-Users] Generate list file Avinash Vijayvergia
2008-04-09 19:35 ` Jerry Van Baren
2008-04-10 5:39 ` Jens Gehrlein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox