summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/pbl.lds.S
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 /arch/arm/lib/pbl.lds.S
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 'arch/arm/lib/pbl.lds.S')
-rw-r--r--arch/arm/lib/pbl.lds.S8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/lib/pbl.lds.S b/arch/arm/lib/pbl.lds.S
index d3ec2f86a1..1eae8298ee 100644
--- a/arch/arm/lib/pbl.lds.S
+++ b/arch/arm/lib/pbl.lds.S
@@ -86,6 +86,12 @@ SECTIONS
}
__piggydata_end = .;
- _barebox_image_size = __piggydata_end - (TEXT_BASE - SZ_2M);
+ . = ALIGN(4);
+ .image_end : {
+ KEEP(*(.image_end))
+ }
+ __image_end = .;
+
+ _barebox_image_size = __image_end - (TEXT_BASE - SZ_2M);
_barebox_pbl_size = __bss_start - (TEXT_BASE - SZ_2M);
}