linker: use SECTION_DATA_PROLOGUE for app_smem

This is data and needs the implicit ALIGN_WITH_INPUT that
is provided with SECTION_DATA_PROLOGUE. Otherwise misalignment
may occur if XIP is turned on.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-07-29 18:21:46 -07:00 committed by Andrew Boie
commit c74c388764

View file

@ -79,7 +79,7 @@
Z_ITERABLE_SECTION_ROM(z_object_assignment, 4)
#endif
SECTION_PROLOGUE(app_shmem_regions,,)
SECTION_DATA_PROLOGUE(app_shmem_regions,,)
{
__app_shmem_regions_start = .;
KEEP(*(SORT(.app_regions.*)));