From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] ARM pbl: move piggydata before bss
Date: Thu, 14 Feb 2013 14:33:20 +0100 [thread overview]
Message-ID: <20130214133320.GS19322@game.jcrosoft.org> (raw)
In-Reply-To: <1360833179-10324-1-git-send-email-s.hauer@pengutronix.de>
On 10:12 Thu 14 Feb , Sascha Hauer wrote:
> This decreases the pbl image size by the size of the bss segment.
>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
> arch/arm/pbl/zbarebox.lds.S | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/pbl/zbarebox.lds.S b/arch/arm/pbl/zbarebox.lds.S
> index 564b3c6..2914fdd 100644
> --- a/arch/arm/pbl/zbarebox.lds.S
> +++ b/arch/arm/pbl/zbarebox.lds.S
> @@ -59,18 +59,18 @@ SECTIONS
> .data : { *(.data*) }
>
> . = ALIGN(4);
> - __bss_start = .;
> - .bss : { *(.bss*) }
> - __bss_stop = .;
> - _end = .;
> -
> - . = ALIGN(4);
> __piggydata_start = .;
> .piggydata : {
> *(.piggydata)
> }
> __piggydata_end = .;
>
> + . = ALIGN(4);
> + __bss_start = .;
> + .bss : { *(.bss*) }
> + __bss_stop = .;
> + _end = .;
I did this on purpose
so we can load the pbl in sram without the piggydata
so do not change it
Best Regards,
J.
> +
> _barebox_image_size = __piggydata_end - (TEXT_BASE - SZ_2M);
> _barebox_pbl_size = __bss_start - (TEXT_BASE - SZ_2M);
> }
> --
> 1.7.10.4
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2013-02-14 13:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-14 9:12 Sascha Hauer
2013-02-14 10:06 ` Alexander Aring
2013-02-14 11:27 ` Sascha Hauer
2013-02-14 13:33 ` Jean-Christophe PLAGNIOL-VILLARD [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=20130214133320.GS19322@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.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