]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
bl32: add an assert on BL32_SIZE in sp_min.ld.S
authorYann Gautier <yann.gautier@st.com>
Mon, 5 Oct 2020 09:39:19 +0000 (11:39 +0200)
committerYann Gautier <yann.gautier@st.com>
Mon, 5 Oct 2020 10:51:48 +0000 (12:51 +0200)
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>
bl32/sp_min/sp_min.ld.S

index 5223915e592b266cafa80e0e33daf8fc2ef27154..f202c7ada8dc4d1342d9e4b8acc0bdeedcf4d265 100644 (file)
@@ -140,4 +140,6 @@ SECTIONS
     __RW_END__ = .;
 
     __BL32_END__ = .;
+
+    ASSERT(. <= BL32_LIMIT, "BL32 image has exceeded its limit.")
 }