diff options
author | Juan Castillo <juan.castillo@arm.com> | 2014-09-16 10:40:35 +0100 |
---|---|---|
committer | Juan Castillo <juan.castillo@arm.com> | 2014-09-19 10:00:38 +0100 |
commit | d7fbf13267d910b1f8efd461c60f84e2355cba6a (patch) | |
tree | 8d7e8fb17991279d364a23894de3c47fade115bc | |
parent | 8e0bbcb3a9be810ad46af36bee65aada70becb27 (diff) |
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
-rw-r--r-- | bl1/bl1.ld.S | 4 | ||||
-rw-r--r-- | bl2/bl2.ld.S | 2 | ||||
-rw-r--r-- | bl31/bl31.ld.S | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/bl1/bl1.ld.S b/bl1/bl1.ld.S index 8092396e..007149b5 100644 --- a/bl1/bl1.ld.S +++ b/bl1/bl1.ld.S @@ -35,8 +35,8 @@ OUTPUT_ARCH(PLATFORM_LINKER_ARCH) ENTRY(bl1_entrypoint) MEMORY { - ROM (rx): ORIGIN = BL1_RO_BASE, LENGTH = BL1_RO_LIMIT - RAM (rwx): ORIGIN = BL1_RW_BASE, LENGTH = BL1_RW_LIMIT + ROM (rx): ORIGIN = BL1_RO_BASE, LENGTH = BL1_RO_LIMIT - BL1_RO_BASE + RAM (rwx): ORIGIN = BL1_RW_BASE, LENGTH = BL1_RW_LIMIT - BL1_RW_BASE } SECTIONS 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 } diff --git a/bl31/bl31.ld.S b/bl31/bl31.ld.S index add65b8d..124be85c 100644 --- a/bl31/bl31.ld.S +++ b/bl31/bl31.ld.S @@ -36,7 +36,7 @@ ENTRY(bl31_entrypoint) MEMORY { - RAM (rwx): ORIGIN = BL31_BASE, LENGTH = BL31_LIMIT + RAM (rwx): ORIGIN = BL31_BASE, LENGTH = BL31_LIMIT - BL31_BASE } |