mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 08:54:05 +08:00
boards/{nrf53|stm32h7}: mark shmem region as NOLOAD
Build Documentation / build-html (push) Has been cancelled
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user