aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu
diff options
context:
space:
mode:
authorPali Rohár2022-04-05 15:12:34 +0200
committerPriyanka Jain2022-04-26 17:18:39 +0530
commit1b780b654f20055f40a049da4f2ef12207757690 (patch)
treed3c2f89125ab70859d82c69505e491b09d787bd9 /arch/powerpc/cpu
parentc45f000f294e096f6f5060bd528b65d14f6c6f12 (diff)
powerpc: mpc85xx: Put bss after image when not including reset vector
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>
Diffstat (limited to 'arch/powerpc/cpu')
-rw-r--r--arch/powerpc/cpu/mpc85xx/u-boot.lds6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/u-boot.lds b/arch/powerpc/cpu/mpc85xx/u-boot.lds
index 565d5deb530..9d0f0d58d80 100644
--- a/arch/powerpc/cpu/mpc85xx/u-boot.lds
+++ b/arch/powerpc/cpu/mpc85xx/u-boot.lds
@@ -11,10 +11,6 @@
#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 :
{