mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 02:38:18 +00:00
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:
parent
7a6b9e9407
commit
53fccb56c9
8 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue