aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/ARMCMx
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-10-09 13:36:54 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-10-09 13:36:54 +0000
commit67586c077faf4ecbf6a901a2f0ee9743544c002b (patch)
tree9bc45b3e9eb01685c104be15d7c9a9995ec75ad4 /os/common/ports/ARMCMx
parentf6f26fc55cf126e15debf91b5efd2245a0947cab (diff)
downloadChibiOS-67586c077faf4ecbf6a901a2f0ee9743544c002b.tar.gz
ChibiOS-67586c077faf4ecbf6a901a2f0ee9743544c002b.tar.bz2
ChibiOS-67586c077faf4ecbf6a901a2f0ee9743544c002b.zip
GCC 4.9 workaround in F7 scatter file.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8350 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/ports/ARMCMx')
-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);