diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-04-04 10:51:47 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-05-06 08:53:26 +0200 |
commit | 64476d2177a53228319c4ab5b99cfb66ec8cc365 (patch) | |
tree | e61e6b30d8df45c2972f1a2abcdb5b879155ca44 /arch/arm/lib/barebox.lds.S | |
parent | c1bcb052ddf55c9181e0ce65962a793584d9154e (diff) | |
download | barebox-64476d2177a53228319c4ab5b99cfb66ec8cc365.tar.gz barebox-64476d2177a53228319c4ab5b99cfb66ec8cc365.tar.xz |
ARM: compile in image size and magic into barebox image
This is useful to detect a barebox image and to be able
to copy only the image size if barebox is stored on
raw partitions which are bigger than the image.
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.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/lib/barebox.lds.S b/arch/arm/lib/barebox.lds.S index 7683f739eb..81a91236c0 100644 --- a/arch/arm/lib/barebox.lds.S +++ b/arch/arm/lib/barebox.lds.S @@ -93,4 +93,5 @@ SECTIONS .bss : { *(.bss*) } __bss_stop = .; _end = .; + _barebox_image_size = __bss_start - _text; } |