diff options
author | Yann Gautier <yann.gautier@st.com> | 2020-10-05 11:39:19 +0200 |
---|---|---|
committer | Yann Gautier <yann.gautier@st.com> | 2020-10-05 12:51:48 +0200 |
commit | fdd97d7c64edb256812e786a7aa224a3010a7fec (patch) | |
tree | 68f0b24dd54f0370de7e7b16d1da4d01632f0032 | |
parent | b1f596b68b040cfcdb19d06252b2998e6354a36a (diff) |
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>
-rw-r--r-- | bl32/sp_min/sp_min.ld.S | 2 |
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.") } |