From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: Fix __bss_start and __bss_end in linker scripts
Date: Mon, 8 Apr 2013 15:56:12 -0400 [thread overview]
Message-ID: <516320DC.90403@ti.com> (raw)
In-Reply-To: <20130408210305.4f1cc319@lilith>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/08/2013 03:03 PM, Albert ARIBAUD wrote:
> Hi Tom,
>
> On Fri, 5 Apr 2013 16:23:30 -0400, Tom Rini <trini@ti.com> wrote:
>
>> On Fri, Apr 05, 2013 at 10:04:02PM +0200, Albert ARIBAUD wrote:
>>
>>> The two general ideas of my proposal are:
>>>
>>> 1) to separate testing the image (text,data,rodata,lists) size
>>> on the one hand and the image BSS size on the other hand, and
>>>
>>> 2) to consider that if a target defines an image max size and a
>>> BSS max size, then the image max size does not include the BSS
>>> size ; and if it defined an image max size but no BSS max size,
>>> then the image max size includes the BSS.
>>>
>>> The first idea allows boards with disjoint image and BSS to
>>> still check eahc part's size, a thing not feasible with the
>>> current code; the second idea allows fewer changes, but if one
>>> wants CONFIG_SPL_MAX_SIZE to have a strict meaning, we can drop
>>> idea #2 and still keep idea #1.
>>
>> Make it so, thanks!
>
> Just a quick heads up: in the little time I could spare this
> week-end, I analyzed the SPL image vs BSS max sizes issue, and the
> following appeared:
>
>
> 1. File arch/arm/cpu/u-boot.lds has an ASSERT() regarding SPL even
> though it is never used for building SPL (tested by replacing the
> ASSERT() condition by 0 and building all of ARM).
>
> 2. Several boards use arch/arm/cpu/u-boot-spl.lds, which has an
> ASSERT() wrongly comparing image+BSS size to image-only
> CONFIG_SPL_MAX_SIZE. Fixing the linker file will fix all tegra
> boards as well as the exynos origen and smdkv310.
>
> Note: the tegra-common.h config file states a non-existent .lds
> file for SPL.
I was wondering about #1 and the tegra bit too, but thought there must
be magic I'm missing.
>
> 3. Boards cam_enc_4xx, da850evm, smdk5250 and snow all define
> maximum SPL size to include image and BSS. These must be split
> arbitrarily; I have chosen values that fit sizes from current build
> results.
In all of the first two, it's limit on overall size
(text/data/rodata/bss).
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJRYyDcAAoJENk4IS6UOR1WzEwP/1JmhuZRwr/UZ1Pg51tqeRHW
Tk9w5JTVZoOIUFGT10JNp2y5nWIjCFlFDlZMnXTFtNpBYO7gV+qJrI+54LhSR8Ra
UxOwp3MHV/ihb/6iTY8Bx9ziEvdwU78NnoS2dCwOoY9UuskQ++M2qGgLtYnYU2Oh
9KVfDEf9/rItO/JL63ZviYPgoLBJ88OSGM/fc3cw1n89WDCl4u/AUqS3d3IR+G4U
hCVAuJfp3xbX5z/zvzj56kmJeLvxjfA5M9/M74YABU5mJ+4Rq9pZ+h93JVyttfjZ
4muDY8GQJ/uha/1FPbnukN71Gr6wdbobeU0dkz371moiPGNw3GQ2pS9EkJ5BXT/l
1KqDK7Y7B6v1jFxIIW6Uffjrd3BrX8XHxn3nkhV35CRAjOqYwSJXm/duAeYEnek4
mDTyjTxs6f1vA4neRs3rTlZI6TsrkDPSFKQJyOzjPL/9l6S672ui5tHcyeG5Um0P
T0QIL0uNf5fE/ER4nOxgY1wWHN+tHvsQyLJgiA5va61qtxqReD4D2GqmSnIkWDuT
zrnP9df9mJFVlbnrAjgjZNNbg+zo2kUfvx0cLsM+5ly/cl3CQD3CjjNocPmvBIML
r0l7oKo+yfykGzmh5M90AhD6yshGQJOabunEp5zqqYAFoG6sQMQZp0lzqgtP2mhW
LN1Eg8+xGB4KfxoI5RZn
=YZOX
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2013-04-08 19:56 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-04 22:13 [U-Boot] [PATCH] ARM: Fix __bss_start and __bss_end in linker scripts Albert ARIBAUD
2013-04-04 23:05 ` Benoît Thébaudeau
2013-04-04 23:13 ` Benoît Thébaudeau
2013-04-04 23:54 ` Albert ARIBAUD
2013-04-05 3:44 ` Benoît Thébaudeau
2013-04-05 6:00 ` Albert ARIBAUD
2013-04-05 13:53 ` Tom Rini
2013-04-05 15:59 ` Stephen Warren
2013-04-11 17:52 ` Tom Warren
2013-04-11 17:59 ` Albert ARIBAUD
2013-04-11 18:13 ` Tom Warren
2013-04-05 13:56 ` Benoît Thébaudeau
2013-04-05 16:00 ` Tom Rini
2013-04-05 17:32 ` Benoît Thébaudeau
2013-04-05 17:55 ` Tom Rini
2013-04-05 19:17 ` Albert ARIBAUD
2013-04-05 19:28 ` Albert ARIBAUD
2013-04-05 19:44 ` Tom Rini
2013-04-05 20:04 ` Albert ARIBAUD
2013-04-05 20:23 ` Tom Rini
2013-04-08 19:03 ` Albert ARIBAUD
2013-04-08 19:56 ` Tom Rini [this message]
2013-04-08 20:05 ` Albert ARIBAUD
2013-04-04 23:12 ` Albert ARIBAUD
2013-04-11 15:30 ` Albert ARIBAUD
2013-04-11 15:43 ` [U-Boot] [PATCH V2] " Albert ARIBAUD
2013-04-12 16:34 ` Albert ARIBAUD
2013-04-13 21:16 ` Albert ARIBAUD
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=516320DC.90403@ti.com \
--to=trini@ti.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