boards/{nrf53|stm32h7}: mark shmem region as NOLOAD
Build Documentation / build-html (push) Has been cancelled

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
+1 -1
View File
@@ -126,7 +126,7 @@ SECTIONS
/* Shmem */
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);
@@ -103,7 +103,7 @@ SECTIONS
/* Shmem */
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);
@@ -103,7 +103,7 @@ SECTIONS
/* Shmem */
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);
@@ -103,7 +103,7 @@ SECTIONS
/* Shmem */
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);
@@ -117,7 +117,7 @@ SECTIONS
_ebss = ABSOLUTE(.);
} > sram
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);
@@ -123,7 +123,7 @@ SECTIONS
_ebss = ABSOLUTE(.);
} > sram
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);
@@ -193,7 +193,7 @@ SECTIONS
} > sram
#ifdef CONFIG_STM32H7_CORTEXM4_ENABLED
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);
@@ -192,7 +192,7 @@ SECTIONS
} > sram
#ifdef CONFIG_STM32H7_CORTEXM4_ENABLED
.shmem :
.shmem (NOLOAD):
{
. = ALIGN(4);
*(.shmem);