boards/{nrf53|stm32h7}: mark shmem region as NOLOAD

Shmem region lives in RAM and should not be load in FLASH.

This fixes the issue with wrong binary size when build AMP
configurations with RPTUN enabled. Before this change shmem
region was exported by objcopy to binary file which caused
the bin size to be huge and impossible to flash.

Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
raiden00pl 2025-12-30 12:47:05 +01:00 committed by Xiang Xiao
parent 7a6b9e9407
commit 53fccb56c9
8 changed files with 8 additions and 8 deletions

View file

@ -126,7 +126,7 @@ SECTIONS
/* Shmem */
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);

View file

@ -103,7 +103,7 @@ SECTIONS
/* Shmem */
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);

View file

@ -103,7 +103,7 @@ SECTIONS
/* Shmem */
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);

View file

@ -103,7 +103,7 @@ SECTIONS
/* Shmem */
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);

View file

@ -117,7 +117,7 @@ SECTIONS
_ebss = ABSOLUTE(.);
} > sram
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);

View file

@ -123,7 +123,7 @@ SECTIONS
_ebss = ABSOLUTE(.);
} > sram
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);

View file

@ -193,7 +193,7 @@ SECTIONS
} > sram
#ifdef CONFIG_STM32H7_CORTEXM4_ENABLED
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);

View file

@ -192,7 +192,7 @@ SECTIONS
} > sram
#ifdef CONFIG_STM32H7_CORTEXM4_ENABLED
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);