aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/common/ports/ARMCMx/compilers/GCC/ld/rules_STM32F7xx.ld24
1 files changed, 12 insertions, 12 deletions
diff --git a/os/common/ports/ARMCMx/compilers/GCC/ld/rules_STM32F7xx.ld b/os/common/ports/ARMCMx/compilers/GCC/ld/rules_STM32F7xx.ld
index a71b6ccd6..44ccf7bba 100644
--- a/os/common/ports/ARMCMx/compilers/GCC/ld/rules_STM32F7xx.ld
+++ b/os/common/ports/ARMCMx/compilers/GCC/ld/rules_STM32F7xx.ld
@@ -105,6 +105,18 @@ SECTIONS
. = ALIGN(8);
} > flash_itcm AT > flash
+ /* Constants are placed in the normal flash (non-ITCM) region because it
+ is desirable to make them DMA-accessible.*/
+ .rodata : ALIGN(4)
+ {
+ . = ALIGN(4);
+ PROVIDE(__rodata_base__ = .);
+ *(.rodata)
+ *(.rodata.*)
+ . = ALIGN(4);
+ PROVIDE(__rodata_end__ = .);
+ } > flash
+
. = ALIGN(4);
_etext = .;
_textdata = _etext;
@@ -163,18 +175,6 @@ SECTIONS
PROVIDE(_edata = .);
} > DATA_RAM AT > flash
- /* Constants are placed in the normal flash (non-ITCM) region because it
- is desirable to make them DMA-accessible.*/
- .rodata : ALIGN(4)
- {
- . = ALIGN(4);
- PROVIDE(__rodata_base__ = .);
- *(.rodata)
- *(.rodata.*)
- . = ALIGN(4);
- PROVIDE(__rodata_end__ = .);
- } > flash
-
.bss : ALIGN(4)
{
. = ALIGN(4);