From d7fbf13267d910b1f8efd461c60f84e2355cba6a Mon Sep 17 00:00:00 2001 From: Juan Castillo Date: Tue, 16 Sep 2014 10:40:35 +0100 Subject: Fix LENGTH attribute value in linker scripts This patch fixes the incorrect value of the LENGTH attribute in the linker scripts. This attribute must define the memory size, not the limit address. Fixes ARM-software/tf-issues#252 Change-Id: I328c38b9ec502debe12046a8912d7dfc54610c46 --- bl2/bl2.ld.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bl2') diff --git a/bl2/bl2.ld.S b/bl2/bl2.ld.S index 1665f5d2..65304de7 100644 --- a/bl2/bl2.ld.S +++ b/bl2/bl2.ld.S @@ -35,7 +35,7 @@ OUTPUT_ARCH(PLATFORM_LINKER_ARCH) ENTRY(bl2_entrypoint) MEMORY { - RAM (rwx): ORIGIN = BL2_BASE, LENGTH = BL2_LIMIT + RAM (rwx): ORIGIN = BL2_BASE, LENGTH = BL2_LIMIT - BL2_BASE } -- cgit v1.2.3