From fdd97d7c64edb256812e786a7aa224a3010a7fec Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Mon, 5 Oct 2020 11:39:19 +0200 Subject: [PATCH] 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 --- bl32/sp_min/sp_min.ld.S | 2 ++ 1 file changed, 2 insertions(+) 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.") }