cortex_m: secure_entry_functions.ld: Increase SAU alignment to 32

The spec requires SAU regions to be aligned on 32 bytes.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
Øyvind Rønningstad 2020-09-23 09:52:37 +02:00 committed by Ioannis Glaropoulos
parent 81e7608c03
commit 407ebf8132

View file

@ -19,12 +19,13 @@
#if CONFIG_ARM_NSC_REGION_BASE_ADDRESS != 0
#define NSC_ALIGN . = ABSOLUTE(CONFIG_ARM_NSC_REGION_BASE_ADDRESS)
#else
#define NSC_ALIGN . = ALIGN(4)
/* The ARM SAU requires regions to be 32-byte-aligned. */
#define NSC_ALIGN . = ALIGN(32)
#endif /* CONFIG_ARM_NSC_REGION_BASE_ADDRESS */
#endif /* !NSC_ALIGN */
#ifndef NSC_ALIGN_END
#define NSC_ALIGN_END . = ALIGN(4)
#define NSC_ALIGN_END . = ALIGN(32)
#endif
SECTION_PROLOGUE(.gnu.sgstubs,,)