summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-06-22 20:06:58 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-26 23:43:19 +0200
commite1bbf6be9049319fefa0d30267433d4921e4f5a1 (patch)
tree0eea4279d8628ecfa0c2623a5f5c2a576747fb3b /include/asm-generic
parent22159db6b06bc17a19560a63bb40c05368ccfa8c (diff)
downloadbarebox-e1bbf6be9049319fefa0d30267433d4921e4f5a1.tar.gz
barebox-e1bbf6be9049319fefa0d30267433d4921e4f5a1.tar.xz
ARM: Add image end section
In the upcoming multi image build process we will cat images together. To find the concatenated image we need to reliably find the end of the current binary. This adds a dummy section at the end of a pbl binary. Its only purpose is to mark the end of the image. The multi image patches will add something to this section so that it doesn't get discarded by the linker. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/sections.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h
index 5492aa4d98..984f8b606b 100644
--- a/include/asm-generic/sections.h
+++ b/include/asm-generic/sections.h
@@ -6,6 +6,7 @@ extern char __bss_start[], __bss_stop[];
extern char _sdata[], _edata[];
extern char __bare_init_start[], __bare_init_end[];
extern char _end[];
+extern char __image_end[];
extern void *_barebox_image_size;
extern void *_barebox_bare_init_size;
extern void *_barebox_pbl_size;