powerpc: mpc85xx: Put bss after image when not including reset vector
authorPali Rohár <pali@kernel.org>
Tue, 5 Apr 2022 13:12:34 +0000 (15:12 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:48:39 +0000 (17:18 +0530)
Linker knows exact size of the image, so there is no need to use
CONFIG_SYS_MONITOR_LEN macro (which should be upper limit).

Remove usage of CONFIG_SYS_MONITOR_LEN macro to simplify setup.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/powerpc/cpu/mpc85xx/u-boot.lds

index 565d5deb530a8f81231f40f90752ec46f1f87fc0..9d0f0d58d804fcce46670b09fd6372250d750330 100644 (file)
 #define RESET_VECTOR_ADDRESS   0xfffffffc
 #endif
 
-#ifndef CONFIG_SYS_MONITOR_LEN
-#define CONFIG_SYS_MONITOR_LEN 0x80000
-#endif
-
 OUTPUT_ARCH(powerpc)
 ENTRY(_start)
 
@@ -86,7 +82,7 @@ SECTIONS
   {
     KEEP(arch/powerpc/cpu/mpc85xx/start.o (.bootpg))
   } :text = 0xffff
-  . = ADDR(.text) + CONFIG_SYS_MONITOR_LEN;
+  . = _end;
 #else
   .bootpg RESET_VECTOR_ADDRESS - 0xffc :
   {