From dcdaea8ea4e30bda79441c60ac4d01cd1a710b7d Mon Sep 17 00:00:00 2001 From: luchenxu Date: Wed, 16 Sep 2026 21:48:22 +0800 Subject: [PATCH] [bsp][stm32]fix stm32 ld flash oversize #11124 --- .../stm32f0xx/board/linker_scripts/link.lds | 12 ++++++------ .../stm32f10x/board/linker_scripts/link.lds | 12 ++++++------ .../stm32f2xx/board/linker_scripts/link.lds | 12 ++++++------ .../stm32f3xx/board/linker_scripts/link.lds | 12 ++++++------ .../stm32f4xx/board/linker_scripts/link.lds | 12 ++++++------ .../stm32f7xx/board/linker_scripts/link.lds | 12 ++++++------ .../stm32h7xx/board/linker_scripts/link.lds | 12 ++++++------ .../stm32l1xx/board/linker_scripts/link.lds | 12 ++++++------ .../stm32l4xx/board/linker_scripts/link.lds | 12 ++++++------ .../stm32l5xx/board/linker_scripts/link.lds | 12 ++++++------ .../stm32mp1xx/board/linker_scripts/link.lds | 12 ++++++------ .../stm32wbxx/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32f103-atk-nano/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32f103-yf-ufun/board/linker_scripts/link.lds | 12 ++++++------ .../stm32f103-ys-f1pro/board/linker_scripts/link.lds | 12 ++++++------ .../stm32f107-uc-eval/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32f407-micu/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32f407-rt-spark/board/linker_scripts/link.lds | 10 +++++----- .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32f411-atk-nano/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32f429-st-disco/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32f469-st-disco/board/linker_scripts/link.lds | 12 ++++++------ .../stm32f723-st-disco/board/linker_scripts/link.lds | 12 ++++++------ .../stm32f746-st-disco/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32f769-st-disco/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32h723-DM-MC02/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32h750-artpi/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32h7r7-artpi2/board/linker_scripts/link.lds | 12 ++++++------ .../stm32h7s7-st-disco/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32l431-BearPi/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32l4r9-st-eval/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32mp157a-st-ev1/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ .../stm32u585-iot02a/board/linker_scripts/link.lds | 12 ++++++------ .../board/linker_scripts/link.lds | 12 ++++++------ 110 files changed, 659 insertions(+), 659 deletions(-) diff --git a/bsp/stm32/libraries/templates/stm32f0xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f0xx/board/linker_scripts/link.lds index 2549f2660f2e..fe07b1d082b8 100644 --- a/bsp/stm32/libraries/templates/stm32f0xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f0xx/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32f10x/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f10x/board/linker_scripts/link.lds index 5a45f64a27fc..15a7faffe09d 100644 --- a/bsp/stm32/libraries/templates/stm32f10x/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f10x/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32f2xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f2xx/board/linker_scripts/link.lds index cfa0efbe098f..939ce13775f6 100644 --- a/bsp/stm32/libraries/templates/stm32f2xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f2xx/board/linker_scripts/link.lds @@ -54,15 +54,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -75,9 +75,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32f3xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f3xx/board/linker_scripts/link.lds index 39ec830ad74b..0efcf4192cb9 100644 --- a/bsp/stm32/libraries/templates/stm32f3xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f3xx/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32f4xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f4xx/board/linker_scripts/link.lds index 224d1119a563..193bd27f7d3c 100644 --- a/bsp/stm32/libraries/templates/stm32f4xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f4xx/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32f7xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f7xx/board/linker_scripts/link.lds index 224d1119a563..193bd27f7d3c 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f7xx/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.lds index 904cb2b14d37..378d974f072f 100644 --- a/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds index 1cb995953a7e..b2376e804ab3 100644 --- a/bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32l4xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32l4xx/board/linker_scripts/link.lds index 4f3832bd9c53..738a27853716 100644 --- a/bsp/stm32/libraries/templates/stm32l4xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32l4xx/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32l5xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32l5xx/board/linker_scripts/link.lds index 4f3832bd9c53..738a27853716 100644 --- a/bsp/stm32/libraries/templates/stm32l5xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32l5xx/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32mp1xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32mp1xx/board/linker_scripts/link.lds index b9410db545ef..67912bb5eb1d 100644 --- a/bsp/stm32/libraries/templates/stm32mp1xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32mp1xx/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/libraries/templates/stm32wbxx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32wbxx/board/linker_scripts/link.lds index 77137ed75493..363a1271d3f3 100644 --- a/bsp/stm32/libraries/templates/stm32wbxx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32wbxx/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f072-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f072-st-nucleo/board/linker_scripts/link.lds index 2292c96e9647..f56fcf26d2fa 100644 --- a/bsp/stm32/stm32f072-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f072-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f091-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f091-st-nucleo/board/linker_scripts/link.lds index 463b33c098ae..69c8d3d9ab55 100644 --- a/bsp/stm32/stm32f091-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f091-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.lds index 677bfcb4edac..65a91053f40a 100644 --- a/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-100ask-pro/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-100ask-pro/board/linker_scripts/link.lds index 64f4be1e7a00..5133ad4f0bb8 100644 --- a/bsp/stm32/stm32f103-100ask-pro/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-100ask-pro/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-atk-nano/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-atk-nano/board/linker_scripts/link.lds index 5a45f64a27fc..15a7faffe09d 100644 --- a/bsp/stm32/stm32f103-atk-nano/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-atk-nano/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-atk-warshipv3/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-atk-warshipv3/board/linker_scripts/link.lds index 64f4be1e7a00..5133ad4f0bb8 100644 --- a/bsp/stm32/stm32f103-atk-warshipv3/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-atk-warshipv3/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds index 5a45f64a27fc..15a7faffe09d 100644 --- a/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-dofly-M3S/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-dofly-M3S/board/linker_scripts/link.lds index 64f4be1e7a00..5133ad4f0bb8 100644 --- a/bsp/stm32/stm32f103-dofly-M3S/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-dofly-M3S/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-dofly-lyc8/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-dofly-lyc8/board/linker_scripts/link.lds index 99c745fe4c18..fd9ee033d5a9 100644 --- a/bsp/stm32/stm32f103-dofly-lyc8/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-dofly-lyc8/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-fire-arbitrary/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-fire-arbitrary/board/linker_scripts/link.lds index 64f4be1e7a00..5133ad4f0bb8 100644 --- a/bsp/stm32/stm32f103-fire-arbitrary/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-fire-arbitrary/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-gizwits-gokitv21/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-gizwits-gokitv21/board/linker_scripts/link.lds index 5a45f64a27fc..15a7faffe09d 100644 --- a/bsp/stm32/stm32f103-gizwits-gokitv21/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-gizwits-gokitv21/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-hw100k-ibox/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-hw100k-ibox/board/linker_scripts/link.lds index 64f4be1e7a00..5133ad4f0bb8 100644 --- a/bsp/stm32/stm32f103-hw100k-ibox/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-hw100k-ibox/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-keysking-learning/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-keysking-learning/board/linker_scripts/link.lds index 5a45f64a27fc..15a7faffe09d 100644 --- a/bsp/stm32/stm32f103-keysking-learning/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-keysking-learning/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-onenet-nbiot/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-onenet-nbiot/board/linker_scripts/link.lds index c96b01a1cf29..3c01dcb4d5cb 100644 --- a/bsp/stm32/stm32f103-onenet-nbiot/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-onenet-nbiot/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-yf-ufun/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-yf-ufun/board/linker_scripts/link.lds index b16b453a1eb4..4e70739e0c3a 100644 --- a/bsp/stm32/stm32f103-yf-ufun/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-yf-ufun/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f103-ys-f1pro/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-ys-f1pro/board/linker_scripts/link.lds index 64f4be1e7a00..5133ad4f0bb8 100644 --- a/bsp/stm32/stm32f103-ys-f1pro/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-ys-f1pro/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.lds b/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.lds index 3a375297696e..8f3a4dd448fc 100644 --- a/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f207-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f207-st-nucleo/board/linker_scripts/link.lds index a810dd0cc968..f54b8ddfee4e 100644 --- a/bsp/stm32/stm32f207-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f207-st-nucleo/board/linker_scripts/link.lds @@ -54,15 +54,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -75,9 +75,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f302-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f302-st-nucleo/board/linker_scripts/link.lds index 39ec830ad74b..0efcf4192cb9 100644 --- a/bsp/stm32/stm32f302-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f302-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f334-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f334-st-nucleo/board/linker_scripts/link.lds index d8b5d8c834ff..e03366ad3884 100644 --- a/bsp/stm32/stm32f334-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f334-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f401-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f401-st-nucleo/board/linker_scripts/link.lds index 5ce1d786dee4..a0a3917868ca 100644 --- a/bsp/stm32/stm32f401-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f401-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f401-weact-blackpill/board/linker_scripts/link.lds b/bsp/stm32/stm32f401-weact-blackpill/board/linker_scripts/link.lds index d1ccff88c6a1..390f75e59c82 100644 --- a/bsp/stm32/stm32f401-weact-blackpill/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f401-weact-blackpill/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f405-smdz-breadfruit/board/linker_scripts/link.lds b/bsp/stm32/stm32f405-smdz-breadfruit/board/linker_scripts/link.lds index 3c53046fe99b..a8118d6f0296 100644 --- a/bsp/stm32/stm32f405-smdz-breadfruit/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f405-smdz-breadfruit/board/linker_scripts/link.lds @@ -65,15 +65,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > CODE __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -91,9 +91,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> CODE - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f405zg-mini-template/board/linker_scripts/link.lds b/bsp/stm32/stm32f405zg-mini-template/board/linker_scripts/link.lds index 224d1119a563..193bd27f7d3c 100644 --- a/bsp/stm32/stm32f405zg-mini-template/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f405zg-mini-template/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f407-armfly-v5/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-armfly-v5/board/linker_scripts/link.lds index e6d932fd7c99..ff783e073714 100644 --- a/bsp/stm32/stm32f407-armfly-v5/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-armfly-v5/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f407-atk-explorer/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-atk-explorer/board/linker_scripts/link.lds index d640603da2b1..665ec4d1839c 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-atk-explorer/board/linker_scripts/link.lds @@ -66,15 +66,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > CODE __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -92,9 +92,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> CODE - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f407-fk407m2-zgt6/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-fk407m2-zgt6/board/linker_scripts/link.lds index d640603da2b1..665ec4d1839c 100644 --- a/bsp/stm32/stm32f407-fk407m2-zgt6/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-fk407m2-zgt6/board/linker_scripts/link.lds @@ -66,15 +66,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > CODE __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -92,9 +92,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> CODE - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f407-lckfb-skystar/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-lckfb-skystar/board/linker_scripts/link.lds index 698e67037c10..bb6d13bf80c4 100644 --- a/bsp/stm32/stm32f407-lckfb-skystar/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-lckfb-skystar/board/linker_scripts/link.lds @@ -74,15 +74,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > CODE __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -100,9 +100,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> CODE - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f407-micu/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-micu/board/linker_scripts/link.lds index 0d86da802738..7a1e91605137 100644 --- a/bsp/stm32/stm32f407-micu/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-micu/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f407-robomaster-c/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-robomaster-c/board/linker_scripts/link.lds index 224d1119a563..193bd27f7d3c 100644 --- a/bsp/stm32/stm32f407-robomaster-c/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-robomaster-c/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f407-rt-spark/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-rt-spark/board/linker_scripts/link.lds index e3498025dfc9..ba1f396e5be7 100644 --- a/bsp/stm32/stm32f407-rt-spark/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-rt-spark/board/linker_scripts/link.lds @@ -80,15 +80,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > CODE __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -106,7 +106,7 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> CODE .stack (NOLOAD): { diff --git a/bsp/stm32/stm32f407-st-discovery/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-st-discovery/board/linker_scripts/link.lds index 4f8d01522a46..5bd6cc7eb360 100644 --- a/bsp/stm32/stm32f407-st-discovery/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-st-discovery/board/linker_scripts/link.lds @@ -64,15 +64,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > CODE __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -85,9 +85,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> CODE - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f410-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f410-st-nucleo/board/linker_scripts/link.lds index aeba68d58929..8ae7993f2128 100644 --- a/bsp/stm32/stm32f410-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f410-st-nucleo/board/linker_scripts/link.lds @@ -64,15 +64,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f411-atk-nano/board/linker_scripts/link.lds b/bsp/stm32/stm32f411-atk-nano/board/linker_scripts/link.lds index e2fa98f495e3..6939762ab331 100644 --- a/bsp/stm32/stm32f411-atk-nano/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f411-atk-nano/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f411-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f411-st-nucleo/board/linker_scripts/link.lds index cd285981aed3..cea27d475ee8 100644 --- a/bsp/stm32/stm32f411-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f411-st-nucleo/board/linker_scripts/link.lds @@ -64,15 +64,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f411-weact-blackpill/board/linker_scripts/link.lds b/bsp/stm32/stm32f411-weact-blackpill/board/linker_scripts/link.lds index cd285981aed3..cea27d475ee8 100644 --- a/bsp/stm32/stm32f411-weact-blackpill/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f411-weact-blackpill/board/linker_scripts/link.lds @@ -64,15 +64,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds index 0e417f2a8081..b681556952cd 100644 --- a/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds @@ -69,15 +69,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f413-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f413-st-nucleo/board/linker_scripts/link.lds index 49685f20780a..e3c1698f9a96 100644 --- a/bsp/stm32/stm32f413-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f413-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.lds b/bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.lds index a1d3475a846a..fe3993207bb0 100644 --- a/bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM1 + } > RAM1 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f429-armfly-v6/board/linker_scripts/link.lds b/bsp/stm32/stm32f429-armfly-v6/board/linker_scripts/link.lds index 8884659baeee..5be7db0ee111 100644 --- a/bsp/stm32/stm32f429-armfly-v6/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f429-armfly-v6/board/linker_scripts/link.lds @@ -65,15 +65,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > CODE __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -91,9 +91,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> CODE - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds b/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds index 45861b463b71..c72b574cf7c0 100644 --- a/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds @@ -71,15 +71,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > CODE __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -97,9 +97,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> CODE - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f429-fire-challenger/board/linker_scripts/link.lds b/bsp/stm32/stm32f429-fire-challenger/board/linker_scripts/link.lds index 8884659baeee..5be7db0ee111 100644 --- a/bsp/stm32/stm32f429-fire-challenger/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f429-fire-challenger/board/linker_scripts/link.lds @@ -65,15 +65,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > CODE __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -91,9 +91,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> CODE - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f429-st-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32f429-st-disco/board/linker_scripts/link.lds index 052bc52b6972..819ceb062dc1 100644 --- a/bsp/stm32/stm32f429-st-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f429-st-disco/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f446-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f446-st-nucleo/board/linker_scripts/link.lds index 67337e873b12..559038326bc3 100644 --- a/bsp/stm32/stm32f446-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f446-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f469-st-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32f469-st-disco/board/linker_scripts/link.lds index 036786ab6b82..9c274e291125 100644 --- a/bsp/stm32/stm32f469-st-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f469-st-disco/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f723-st-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32f723-st-disco/board/linker_scripts/link.lds index d84891816cbd..1bdba6b3e13b 100644 --- a/bsp/stm32/stm32f723-st-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f723-st-disco/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f746-st-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32f746-st-disco/board/linker_scripts/link.lds index 14682f3d4898..4df669ade929 100644 --- a/bsp/stm32/stm32f746-st-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f746-st-disco/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f746-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f746-st-nucleo/board/linker_scripts/link.lds index 14682f3d4898..4df669ade929 100644 --- a/bsp/stm32/stm32f746-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f746-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f767-atk-apollo/board/linker_scripts/link.lds b/bsp/stm32/stm32f767-atk-apollo/board/linker_scripts/link.lds index 224d1119a563..193bd27f7d3c 100644 --- a/bsp/stm32/stm32f767-atk-apollo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f767-atk-apollo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f767-fire-challenger-v1/board/linker_scripts/link.lds b/bsp/stm32/stm32f767-fire-challenger-v1/board/linker_scripts/link.lds index 7c446dcc54b2..071ec9396c18 100644 --- a/bsp/stm32/stm32f767-fire-challenger-v1/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f767-fire-challenger-v1/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f767-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f767-st-nucleo/board/linker_scripts/link.lds index fea3793464c4..ddf1851643de 100644 --- a/bsp/stm32/stm32f767-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f767-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32f769-st-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32f769-st-disco/board/linker_scripts/link.lds index fea3793464c4..ddf1851643de 100644 --- a/bsp/stm32/stm32f769-st-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f769-st-disco/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32g030-tiny-board/board/linker_scripts/link.lds b/bsp/stm32/stm32g030-tiny-board/board/linker_scripts/link.lds index e2394dc95e19..2f9e56e716e6 100644 --- a/bsp/stm32/stm32g030-tiny-board/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32g030-tiny-board/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32g070-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32g070-st-nucleo/board/linker_scripts/link.lds index 1a463ec86a51..a0df8e5a9f0f 100644 --- a/bsp/stm32/stm32g070-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32g070-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32g071-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32g071-st-nucleo/board/linker_scripts/link.lds index 1a463ec86a51..a0df8e5a9f0f 100644 --- a/bsp/stm32/stm32g071-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32g071-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32g431-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32g431-st-nucleo/board/linker_scripts/link.lds index 67337e873b12..559038326bc3 100644 --- a/bsp/stm32/stm32g431-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32g431-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32g474-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32g474-st-nucleo/board/linker_scripts/link.lds index 67337e873b12..559038326bc3 100644 --- a/bsp/stm32/stm32g474-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32g474-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32g491-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32g491-st-nucleo/board/linker_scripts/link.lds index 67337e873b12..559038326bc3 100644 --- a/bsp/stm32/stm32g491-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32g491-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h503-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32h503-st-nucleo/board/linker_scripts/link.lds index 79003f9de7d3..6035b035a3a0 100644 --- a/bsp/stm32/stm32h503-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h503-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h563-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32h563-st-nucleo/board/linker_scripts/link.lds index 9618ecdbd566..4f554f49a124 100644 --- a/bsp/stm32/stm32h563-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h563-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h723-DM-MC02/board/linker_scripts/link.lds b/bsp/stm32/stm32h723-DM-MC02/board/linker_scripts/link.lds index 30ee4c0fd7d0..b20251979258 100644 --- a/bsp/stm32/stm32h723-DM-MC02/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h723-DM-MC02/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h723-lxb-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32h723-lxb-disco/board/linker_scripts/link.lds index 8447cb549943..221bedc51eb0 100644 --- a/bsp/stm32/stm32h723-lxb-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h723-lxb-disco/board/linker_scripts/link.lds @@ -68,15 +68,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -94,9 +94,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h723-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32h723-st-nucleo/board/linker_scripts/link.lds index 746f37e20af7..fc8248a77239 100644 --- a/bsp/stm32/stm32h723-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h723-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h743-armfly-v7/board/linker_scripts/link.lds b/bsp/stm32/stm32h743-armfly-v7/board/linker_scripts/link.lds index 904cb2b14d37..378d974f072f 100644 --- a/bsp/stm32/stm32h743-armfly-v7/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h743-armfly-v7/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.lds b/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.lds index 904cb2b14d37..378d974f072f 100644 --- a/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h743-openmv-h7plus/board/linker_scripts/link.lds b/bsp/stm32/stm32h743-openmv-h7plus/board/linker_scripts/link.lds index 02089a6f9b1d..5446fd2401f8 100644 --- a/bsp/stm32/stm32h743-openmv-h7plus/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h743-openmv-h7plus/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM2 + } >RAM2 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.lds index 904cb2b14d37..378d974f072f 100644 --- a/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h747-st-discovery/board/linker_scripts/link.lds b/bsp/stm32/stm32h747-st-discovery/board/linker_scripts/link.lds index 45d6f7aaa5d8..79fb56f93cb1 100644 --- a/bsp/stm32/stm32h747-st-discovery/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h747-st-discovery/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h750-armfly-h7-tool/board/linker_scripts/link.lds b/bsp/stm32/stm32h750-armfly-h7-tool/board/linker_scripts/link.lds index 3ebf411f326b..b9ba7470ae48 100644 --- a/bsp/stm32/stm32h750-armfly-h7-tool/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h750-armfly-h7-tool/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h750-artpi/board/linker_scripts/link.lds b/bsp/stm32/stm32h750-artpi/board/linker_scripts/link.lds index 792b2eea4a6f..98a053f8e61b 100644 --- a/bsp/stm32/stm32h750-artpi/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h750-artpi/board/linker_scripts/link.lds @@ -89,15 +89,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -116,9 +116,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.lds b/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.lds index 3ebf411f326b..b9ba7470ae48 100644 --- a/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.lds b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.lds index 3ebf411f326b..b9ba7470ae48 100644 --- a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h7r7-artpi2/board/linker_scripts/link.lds b/bsp/stm32/stm32h7r7-artpi2/board/linker_scripts/link.lds index fc2d9b048ed3..946784222c2a 100644 --- a/bsp/stm32/stm32h7r7-artpi2/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h7r7-artpi2/board/linker_scripts/link.lds @@ -82,15 +82,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -109,9 +109,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32h7s7-st-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32h7s7-st-disco/board/linker_scripts/link.lds index 9266a2dd95f7..2f8e5381a8b7 100644 --- a/bsp/stm32/stm32h7s7-st-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h7s7-st-disco/board/linker_scripts/link.lds @@ -84,15 +84,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -111,9 +111,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l010-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l010-st-nucleo/board/linker_scripts/link.lds index 246c835c6ac3..eea2f8254fd0 100644 --- a/bsp/stm32/stm32l010-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l010-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l053-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l053-st-nucleo/board/linker_scripts/link.lds index 77325e9337ce..8fa6583f931b 100644 --- a/bsp/stm32/stm32l053-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l053-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l412-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l412-st-nucleo/board/linker_scripts/link.lds index 55ac83ee36fc..48d51d0ca5d0 100644 --- a/bsp/stm32/stm32l412-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l412-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l431-BearPi/board/linker_scripts/link.lds b/bsp/stm32/stm32l431-BearPi/board/linker_scripts/link.lds index e38fca8efa1c..90a92b7097fe 100644 --- a/bsp/stm32/stm32l431-BearPi/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l431-BearPi/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM2 + } >RAM2 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l431-tencentos-tiny-EVB_MX+/board/linker_scripts/link.lds b/bsp/stm32/stm32l431-tencentos-tiny-EVB_MX+/board/linker_scripts/link.lds index 90fd61237776..b34f44f7816b 100644 --- a/bsp/stm32/stm32l431-tencentos-tiny-EVB_MX+/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l431-tencentos-tiny-EVB_MX+/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l432-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l432-st-nucleo/board/linker_scripts/link.lds index e38fca8efa1c..90a92b7097fe 100644 --- a/bsp/stm32/stm32l432-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l432-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM2 + } >RAM2 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l433-ali-startkit/board/linker_scripts/link.lds b/bsp/stm32/stm32l433-ali-startkit/board/linker_scripts/link.lds index 3a375297696e..8f3a4dd448fc 100644 --- a/bsp/stm32/stm32l433-ali-startkit/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l433-ali-startkit/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l433-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l433-st-nucleo/board/linker_scripts/link.lds index e38fca8efa1c..90a92b7097fe 100644 --- a/bsp/stm32/stm32l433-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l433-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM2 + } >RAM2 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l452-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l452-st-nucleo/board/linker_scripts/link.lds index 280da426d3d5..a0e2eba5fe38 100644 --- a/bsp/stm32/stm32l452-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l452-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.lds b/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.lds index 197311fa17eb..caa679438332 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.lds @@ -71,15 +71,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -97,9 +97,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l475-st-discovery/board/linker_scripts/link.lds b/bsp/stm32/stm32l475-st-discovery/board/linker_scripts/link.lds index ef680a75bd8a..e7a74dfba46a 100644 --- a/bsp/stm32/stm32l475-st-discovery/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l475-st-discovery/board/linker_scripts/link.lds @@ -64,15 +64,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -90,9 +90,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM2 + } > RAM2 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l476-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l476-st-nucleo/board/linker_scripts/link.lds index 3c5e2c6498c2..063898941f82 100644 --- a/bsp/stm32/stm32l476-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l476-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM2 + } >RAM2 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l496-ali-developer/board/linker_scripts/link.lds b/bsp/stm32/stm32l496-ali-developer/board/linker_scripts/link.lds index 935c151a0103..5c4a299cffec 100644 --- a/bsp/stm32/stm32l496-ali-developer/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l496-ali-developer/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l496-st-discovery/board/linker_scripts/link.lds b/bsp/stm32/stm32l496-st-discovery/board/linker_scripts/link.lds index 6dd16c09550f..7946c33034a8 100644 --- a/bsp/stm32/stm32l496-st-discovery/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l496-st-discovery/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l496-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l496-st-nucleo/board/linker_scripts/link.lds index c41cd9b92fde..860aaff0ac63 100644 --- a/bsp/stm32/stm32l496-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l496-st-nucleo/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l4r5-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l4r5-st-nucleo/board/linker_scripts/link.lds index f4704af097ad..19396356f6c1 100644 --- a/bsp/stm32/stm32l4r5-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l4r5-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -87,9 +87,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM1 + } >RAM1 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l4r9-st-eval/board/linker_scripts/link.lds b/bsp/stm32/stm32l4r9-st-eval/board/linker_scripts/link.lds index bf249b1f0b12..ef50d234d3a3 100644 --- a/bsp/stm32/stm32l4r9-st-eval/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l4r9-st-eval/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -87,9 +87,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM2 + } >RAM2 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l4r9-st-sensortile-box/board/linker_scripts/link.lds b/bsp/stm32/stm32l4r9-st-sensortile-box/board/linker_scripts/link.lds index 5d7aba37c419..0e29776ea97f 100644 --- a/bsp/stm32/stm32l4r9-st-sensortile-box/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l4r9-st-sensortile-box/board/linker_scripts/link.lds @@ -61,15 +61,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -86,9 +86,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM2 + } >RAM2 AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32l552-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l552-st-nucleo/board/linker_scripts/link.lds index 4f3832bd9c53..738a27853716 100644 --- a/bsp/stm32/stm32l552-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l552-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/linker_scripts/link.lds b/bsp/stm32/stm32mp157a-st-discovery/board/linker_scripts/link.lds index b9410db545ef..67912bb5eb1d 100644 --- a/bsp/stm32/stm32mp157a-st-discovery/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32mp157a-st-discovery/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32mp157a-st-ev1/board/linker_scripts/link.lds b/bsp/stm32/stm32mp157a-st-ev1/board/linker_scripts/link.lds index b9410db545ef..67912bb5eb1d 100644 --- a/bsp/stm32/stm32mp157a-st-ev1/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32mp157a-st-ev1/board/linker_scripts/link.lds @@ -63,15 +63,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -89,9 +89,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } >RAM + } >RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32u575-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32u575-st-nucleo/board/linker_scripts/link.lds index 4f3832bd9c53..738a27853716 100644 --- a/bsp/stm32/stm32u575-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32u575-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32u585-iot02a/board/linker_scripts/link.lds b/bsp/stm32/stm32u585-iot02a/board/linker_scripts/link.lds index 7a0eff8c70d8..f8c45f42ce28 100644 --- a/bsp/stm32/stm32u585-iot02a/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32u585-iot02a/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .; diff --git a/bsp/stm32/stm32wb55-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32wb55-st-nucleo/board/linker_scripts/link.lds index e0f6d1e64675..626bc8006dd0 100644 --- a/bsp/stm32/stm32wb55-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32wb55-st-nucleo/board/linker_scripts/link.lds @@ -62,15 +62,15 @@ SECTIONS .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) - - /* This is used by the startup in order to initialize the .data secion */ - _sidata = .; } > ROM __exidx_end = .; + /* Used by the startup to initialize .data. */ + _sidata = LOADADDR(.data); + /* .data section which is used for initialized data */ - .data : AT (_sidata) + .data : { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ @@ -88,9 +88,9 @@ SECTIONS . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; - } > RAM + } > RAM AT> ROM - .stack : + .stack (NOLOAD) : { . = ALIGN(4); _sstack = .;