summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-01-18 02:07:33 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-23 09:43:28 +0100
commit463229490e5624f55a968d9321334f441a981ef2 (patch)
treeb42df7c0d72a08efcaca576b2ab7c542c6f300db /arch/x86
parent4bcf52aa6635cac1b88c513f90f732595979cf94 (diff)
downloadbarebox-463229490e5624f55a968d9321334f441a981ef2.tar.gz
barebox-463229490e5624f55a968d9321334f441a981ef2.tar.xz
introduce barebox_bare_init_size to known the bare_init size and check it
this allow to check we do not exceed the size of the SRAM as example introduce BAREBOX_MAX_BARE_INIT_SIZE the maximum size of bare_init this will allow your bare_init will fit in SRAM as example ARCH can overwrite it via ARCH_BAREBOX_MAX_BARE_INIT_SIZE Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lib/barebox.lds.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/lib/barebox.lds.S b/arch/x86/lib/barebox.lds.S
index c7d5175e8f..9798ed5c61 100644
--- a/arch/x86/lib/barebox.lds.S
+++ b/arch/x86/lib/barebox.lds.S
@@ -145,13 +145,16 @@ SECTIONS
/* do not align here! It may fails with the LOADADDR! */
_stext = .;
*(.text_entry*)
+ __bare_init_start = .;
*(.text_bare_init*)
+ __bare_init_end = .;
*(.text*)
. = ALIGN(4);
*(.rodata*)
. = ALIGN(4);
_etext = .; /* End of text and rodata section */
} > barebox
+ BAREBOX_BARE_INIT_SIZE
.data : AT ( LOADADDR(.text) + SIZEOF(.text) ) {
*(.data*)