From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] v2010-rc2: OMAP3 broken
Date: Mon, 29 Nov 2010 18:22:51 +0100 [thread overview]
Message-ID: <4CF3E16B.30808@denx.de> (raw)
In-Reply-To: <4CF3C46B.8040705@free.fr>
Hello Albert,
Albert ARIBAUD wrote:
> Le 29/11/2010 16:04, Heiko Schocher a ?crit :
>> Hello Albert,
>>
>> Albert ARIBAUD wrote:
>>> I'll take a look this evening at builds with and without the SORT() from
>>> an ELF relocation tables perspective.
>>
>> I debugged on the beagle board a little bit in this problem, and here
>> what I found:
[...]
>> Why is the rel.dyn Section in the bss section?
>>
> The .rel.dyn section is not "in" or "out" of the BSS: they are
> overlapped, i.e. they should start at the same address.
>
> As indicated in the documentation, BSS should never be used before
> relocation; it actually *cannot* be written into by boards which start
> from NOR, and is set to zero for all boards right after relocation.
Yep.
> Since BSS does not exist before relocation, and .rel.dyn does not exist
> after relocation, they can use the same location: overlaying them is the
> best approach in order to get the smallest binary in Flash *and* the
> smallest image in RAM.
Ah, thats what I missed, thanks!
> We can add code to try and catch the most obvious corruption of the
> relocation tables due to BSS being accessed before relocation, but we
> can't be sure to catch them all. The real solution is to fix the BSS usage.
Yep.
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2010-11-29 17:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-29 12:48 [U-Boot] v2010-rc2: OMAP3 broken Wolfgang Denk
2010-11-29 13:19 ` Hiremath, Vaibhav
2010-11-29 13:23 ` Hiremath, Vaibhav
2010-11-29 14:42 ` Albert ARIBAUD
2010-11-29 15:04 ` Heiko Schocher
2010-11-29 15:13 ` Andreas Bießmann
2010-11-29 17:22 ` Heiko Schocher
2010-11-29 15:19 ` Albert ARIBAUD
2010-11-29 15:32 ` Andreas Bießmann
2010-11-29 17:22 ` Heiko Schocher [this message]
2010-11-29 15:23 ` Premi, Sanjeev
2010-11-29 14:48 ` Andreas Bießmann
2010-11-29 16:08 ` [U-Boot] [PATCH] OMAP-common/timer: Fix bss usage Thomas Weber
2010-11-29 17:25 ` Heiko Schocher
2010-11-29 17:55 ` Thomas Weber
2010-11-29 19:40 ` 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=4CF3E16B.30808@denx.de \
--to=hs@denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.