From: Jens Gehrlein <sew_s@tqs.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Generate list file
Date: Thu, 10 Apr 2008 07:39:16 +0200 [thread overview]
Message-ID: <47FDA804.1080707@tqs.de> (raw)
In-Reply-To: <47FD1A92.5020804@ge.com>
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
prev parent reply other threads:[~2008-04-10 5:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 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=47FDA804.1080707@tqs.de \
--to=sew_s@tqs.de \
--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