stm32/boards: Update linker scripts now that big_const is gone.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2023-02-21 18:37:04 +11:00
parent bad0098a49
commit 593375aa5d
3 changed files with 7 additions and 57 deletions

View File

@ -44,24 +44,4 @@ _micropy_hw_internal_flash_storage_ram_cache_end = ORIGIN(DTCM) + LENGTH(DTCM);
_micropy_hw_internal_flash_storage_start = ORIGIN(FLASH_FS);
_micropy_hw_internal_flash_storage_end = ORIGIN(FLASH_FS) + LENGTH(FLASH_FS);
REGION_ALIAS("FLASH_COMMON", FLASH_TEXT);
/* define output sections */
SECTIONS
{
INCLUDE common_isr.ld
.text :
{
. = ALIGN(4);
*(.text*)
*(.rodata*)
. = ALIGN(512);
*(.big_const*)
. = ALIGN(4);
_etext = .;
} >FLASH_TEXT
INCLUDE common_extratext_data_in_flash.ld
INCLUDE common_bss_heap_stack.ld
}
INCLUDE common_blifs.ld

View File

@ -7,7 +7,7 @@
FLASH_APP .text
FLASH_APP .data
FLASH_EXT .big_const
FLASH_EXT .text_ext
RAM .data
RAM .bss
@ -40,10 +40,6 @@ _ram_end = ORIGIN(RAM) + LENGTH(RAM);
_heap_start = _ebss; /* heap starts just after statically allocated memory */
_heap_end = _sstack;
ENTRY(Reset_Handler)
REGION_ALIAS("FLASH_COMMON", FLASH_APP);
/* Define output sections */
SECTIONS
{
@ -53,13 +49,10 @@ SECTIONS
*lib/btstack/*(.text* .rodata*)
*lib/mbedtls/*(.text* .rodata*)
*lib/mynewt-nimble/*(.text* .rodata*)
. = ALIGN(512);
*(.big_const*)
*lib/cyw43-driver/*(.rodata.w4343*_combined)
*drivers/cyw43/*(.rodata.cyw43_btfw_*)
. = ALIGN(4);
} >FLASH_EXT
INCLUDE common_isr.ld
INCLUDE common_text.ld
INCLUDE common_extratext_data_in_flash.ld
INCLUDE common_bss_heap_stack.ld
}
INCLUDE common_bl.ld

View File

@ -5,7 +5,6 @@
FLASH_APP .isr_vector
FLASH_APP .text
FLASH_APP .big_const
FLASH_APP .data
RAM .data
@ -39,26 +38,4 @@ _ram_end = ORIGIN(RAM) + LENGTH(RAM);
_heap_start = _ebss; /* heap starts just after statically allocated memory */
_heap_end = _sstack;
ENTRY(Reset_Handler)
REGION_ALIAS("FLASH_COMMON", FLASH_APP);
/* Define output sections */
SECTIONS
{
INCLUDE common_isr.ld
.text :
{
. = ALIGN(4);
*(.text*)
*(.rodata*)
. = ALIGN(512);
*(.big_const*)
. = ALIGN(4);
_etext = .;
} >FLASH_APP
INCLUDE common_extratext_data_in_flash.ld
INCLUDE common_bss_heap_stack.ld
}
INCLUDE common_bl.ld