From 67586c077faf4ecbf6a901a2f0ee9743544c002b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 9 Oct 2015 13:36:54 +0000 Subject: 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 --- .../ARMCMx/compilers/GCC/ld/rules_STM32F7xx.ld | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'os/common/ports/ARMCMx/compilers') 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); -- cgit v1.2.3