summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-02-07 11:51:44 -0700
committerSimon Glass <sjg@chromium.org>2015-02-12 10:35:31 -0700
commit0de36f8b62f5f9897f9434f4c3f5739117370694 (patch)
treed97a36fe6329851318454911b7daae3106b09812 /arch/powerpc
parent86bedaebb570c2a111cdcafbf310f95b1bd58a14 (diff)
downloadu-boot-imx-0de36f8b62f5f9897f9434f4c3f5739117370694.zip
u-boot-imx-0de36f8b62f5f9897f9434f4c3f5739117370694.tar.gz
u-boot-imx-0de36f8b62f5f9897f9434f4c3f5739117370694.tar.bz2
powerpc: ppc4xx: Allow the end of u-boot.bin to be found
Define an _end symbol indicating the end of u-boot.bin. Also add some dummy words into the link script to ensure that u-boot.bin will always extend that far. There may be a better way of doing this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/cpu/ppc4xx/u-boot.lds8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/ppc4xx/u-boot.lds b/arch/powerpc/cpu/ppc4xx/u-boot.lds
index 8773178..1980508 100644
--- a/arch/powerpc/cpu/ppc4xx/u-boot.lds
+++ b/arch/powerpc/cpu/ppc4xx/u-boot.lds
@@ -76,9 +76,13 @@ SECTIONS
. = ALIGN(256);
__init_begin = .;
.text.init : { *(.text.init) }
- .data.init : { *(.data.init) }
- . = ALIGN(256);
+ .data.init : {
+ *(.data.init)
+ . = ALIGN(256);
+ LONG(0) LONG(0) /* Extend u-boot.bin to here */
+ }
__init_end = .;
+ _end = .;
#ifndef CONFIG_SPL
#ifdef CONFIG_440