summaryrefslogtreecommitdiff
path: root/bl31/bl31.ld.S
diff options
context:
space:
mode:
Diffstat (limited to 'bl31/bl31.ld.S')
-rw-r--r--bl31/bl31.ld.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/bl31/bl31.ld.S b/bl31/bl31.ld.S
index e6363354..8e0eb59d 100644
--- a/bl31/bl31.ld.S
+++ b/bl31/bl31.ld.S
@@ -160,11 +160,13 @@ SECTIONS
ASSERT(. <= BL31_PROGBITS_LIMIT, "BL31 progbits has exceeded its limit.")
#endif
+#if !STACK_IN_OCRAM_S
stacks (NOLOAD) : {
__STACKS_START__ = .;
*(tzfw_normal_stacks)
__STACKS_END__ = .;
} >RAM
+#endif
/*
* The .bss section gets initialised to 0 at runtime.
@@ -288,5 +290,16 @@ SECTIONS
xlat_table (NOLOAD) : {
*(xlat_table)
} >RAM_S
+
+#if STACK_IN_OCRAM_S
+ stacks (NOLOAD) : {
+ __STACKS_START__ = .;
+ *(tzfw_normal_stacks)
+ __STACKS_END__ = .;
+ } >RAM_S
+#endif
+
+ASSERT(. <= OCRAM_S_LIMIT, "OCRAM_S limit has been exceeded.")
+
#endif
}