diff options
Diffstat (limited to 'ports/stm32/boards/common_extratext_data_in_flash.ld')
| -rw-r--r-- | ports/stm32/boards/common_extratext_data_in_flash.ld | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/stm32/boards/common_extratext_data_in_flash.ld b/ports/stm32/boards/common_extratext_data_in_flash.ld new file mode 100644 index 000000000..e5f25a3c6 --- /dev/null +++ b/ports/stm32/boards/common_extratext_data_in_flash.ld @@ -0,0 +1,14 @@ +/* This linker script fragment is intended to be included in SECTIONS. */ + +/* Used by the start-up code to initialise data */ +_sidata = LOADADDR(.data); + +/* Initialised data section, start-up code will copy it from flash to RAM */ +.data : +{ + . = ALIGN(4); + _sdata = .; + *(.data*) + . = ALIGN(4); + _edata = .; +} >RAM AT> FLASH |
