summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/barebox.lds.S
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/arm/lib/barebox.lds.S
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/arm/lib/barebox.lds.S')
-rw-r--r--arch/arm/lib/barebox.lds.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/lib/barebox.lds.S b/arch/arm/lib/barebox.lds.S
index f05f34523c..e9f62107f9 100644
--- a/arch/arm/lib/barebox.lds.S
+++ b/arch/arm/lib/barebox.lds.S
@@ -44,9 +44,12 @@ SECTIONS
. = 0x1000;
LONG(0x53555243) /* 'CRUS' */
#endif
+ __bare_init_start = .;
*(.text_bare_init*)
+ __bare_init_end = .;
*(.text*)
}
+ BAREBOX_BARE_INIT_SIZE
. = ALIGN(4);
.rodata : { *(.rodata*) }