From: Tom <Tom.Rix@windriver.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Don't inline weak symbols
Date: Tue, 03 Nov 2009 08:04:40 -0600 [thread overview]
Message-ID: <4AF03878.9020007@windriver.com> (raw)
In-Reply-To: <20091103132350.A1D493F6EC@gemini.denx.de>
Wolfgang Denk wrote:
> Dear Roman Zeyde,
>
> In message <6d23e4ef0911030355j47a653a0iea7b6cae2f3cb180@mail.gmail.com> you wrote:
>> I have noticed that the same error as described here
>> (http://lists.denx.de/pipermail/u-boot/2009-October/061913.html)
>> happens when compiling the latest version of U-boot (v2009-11-rc1)
>> using arm-cortex_a8-linux-gnueabi gcc version 4.4.0
>> (crosstool-NG-hg_default at 1620_187e06178dcb).
>
> This has been discussed here before. Please see the archives.
>
>> Could you please apply the patch described above to resolve this issue?
>
> No, I will not. This has to go through the ARM custodian first.
>
> Best regards,
>
> Wolfgang Denk
>
I am currently reviewing this patch.
After reviewing the history.
There is a interest in #if-defing this code.
The reason I can see is at least 2 of the start.S call
bl coloured_LED_init
bl red_LED_on
In general, what happens is they call into the weak
stubs. Only if the cpu/board provides an overriding
function does these calls cause anything meaningful to
happen.
A good candidate for an if-def variable is the existing
CONFIG_STATUS_LED.
I am testing this change now.
Since it effects all the boards, I am using the regressions
of undefined symbol from MAKEALL arm to verify.
When this change is done there will only be a handful of
failures for the inline weak problem.
Then this patch to remove the inlines will take care of them.
I have looked at the assembly these produce and it does not
look different for non-inline to inline. There was a slight
increase in the binary size (zoom2) of 8 bytes using
the code sourcry 2009. For my roll-your-own gcc 4.4.2, the
size was about 400 bytes larger. Of course it is harder to
tell since it wouldn't compile without the fix.
After I run through some more testing, I will send out
the patch set.
Tom
next prev parent reply other threads:[~2009-11-03 14:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-03 11:55 [U-Boot] [PATCH] Don't inline weak symbols Roman Zeyde
2009-11-03 13:23 ` Wolfgang Denk
2009-11-03 14:04 ` Tom [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-08-05 18:14 Ron
2009-08-05 21:07 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-05 21:21 ` Ron
2009-10-03 21:57 ` Wolfgang Denk
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=4AF03878.9020007@windriver.com \
--to=tom.rix@windriver.com \
--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