summaryrefslogtreecommitdiff
path: root/bl32/sp_min
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2020-10-05 11:39:19 +0200
committerYann Gautier <yann.gautier@st.com>2020-10-05 12:51:48 +0200
commitfdd97d7c64edb256812e786a7aa224a3010a7fec (patch)
tree68f0b24dd54f0370de7e7b16d1da4d01632f0032 /bl32/sp_min
parentb1f596b68b040cfcdb19d06252b2998e6354a36a (diff)
downloadarm-trusted-firmware-fdd97d7c64edb256812e786a7aa224a3010a7fec.tar.gz
bl32: add an assert on BL32_SIZE in sp_min.ld.S
This assert is present in all other linker scripts. This checks the size of BL32 doesn't exceed its defined limit. Change-Id: I0005959b5591d3eebd870045adafe437108bc9e1 Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'bl32/sp_min')
-rw-r--r--bl32/sp_min/sp_min.ld.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/bl32/sp_min/sp_min.ld.S b/bl32/sp_min/sp_min.ld.S
index 5223915e5..f202c7ada 100644
--- a/bl32/sp_min/sp_min.ld.S
+++ b/bl32/sp_min/sp_min.ld.S
@@ -140,4 +140,6 @@ SECTIONS
__RW_END__ = .;
__BL32_END__ = .;
+
+ ASSERT(. <= BL32_LIMIT, "BL32 image has exceeded its limit.")
}