]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
powerpc: ppc4xx: Allow the end of u-boot.bin to be found
authorSimon Glass <sjg@chromium.org>
Sat, 7 Feb 2015 18:51:44 +0000 (11:51 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:50:45 +0000 (13:50 +0200)
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>
arch/powerpc/cpu/ppc4xx/u-boot.lds

index 87731785ec59b2a2542266ea22089d6f6884a36c..198050853a326e6c3ba14a8cf7c74579b872f953 100644 (file)
@@ -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