changes ISS linker map: moves .srodata to .rodata and increases RAM and stacksize

This commit is contained in:
Eyck-Alexander Jentzsch 2025-05-23 10:36:01 +02:00
parent 6e2a7a12fe
commit 99c6214381

31
env/iss/link.lds vendored
View File

@ -5,7 +5,7 @@ ENTRY( _start )
MEMORY MEMORY
{ {
flash (rxai!w) : ORIGIN = 0x00000000, LENGTH = 1M flash (rxai!w) : ORIGIN = 0x00000000, LENGTH = 1M
ram (wxa!ri) : ORIGIN = 0x10000000, LENGTH = 16K ram (wxa!ri) : ORIGIN = 0x10000000, LENGTH = 64K
} }
PHDRS PHDRS
@ -18,7 +18,7 @@ PHDRS
SECTIONS SECTIONS
{ {
__stack_size = DEFINED(__stack_size) ? __stack_size : 2K; __stack_size = DEFINED(__stack_size) ? __stack_size : 8K;
.init ORIGIN(flash) : .init ORIGIN(flash) :
{ {
@ -49,6 +49,18 @@ SECTIONS
*(.gnu.linkonce.r.*) *(.gnu.linkonce.r.*)
} >flash AT>flash :flash } >flash AT>flash :flash
.srodata :
{
PROVIDE( _gp = . + 0x800 );
*(.srodata.cst16)
*(.srodata.cst8)
*(.srodata.cst4)
*(.srodata.cst2)
*(.srodata .srodata.*)
} >flash AT>flash :flash
. = ALIGN(4); . = ALIGN(4);
.preinit_array : .preinit_array :
@ -125,7 +137,6 @@ SECTIONS
} >ram AT>flash :ram_init } >ram AT>flash :ram_init
.sdata : .sdata :
{ {
@ -135,20 +146,6 @@ SECTIONS
} >ram AT>flash :ram_init } >ram AT>flash :ram_init
.srodata :
{
PROVIDE( _gp = . + 0x800 );
*(.srodata.cst16)
*(.srodata.cst8)
*(.srodata.cst4)
*(.srodata.cst2)
*(.srodata .srodata.*)
} >ram AT>flash :ram_init
. = ALIGN(4); . = ALIGN(4);
PROVIDE( _edata = . ); PROVIDE( _edata = . );
PROVIDE( edata = . ); PROVIDE( edata = . );