aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/GCC/ARMCMx/STM32F4xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-08 09:15:41 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-08 09:15:41 +0000
commitf8f59580aefc512e14857aa381d3824ec2f5624b (patch)
treea2a161deef98a7d12f73e7cb8e477658cfd9192e /os/ports/GCC/ARMCMx/STM32F4xx
parentc7c5942ac386fcfddcb77cb3c0e525d0e85063c4 (diff)
downloadChibiOS-f8f59580aefc512e14857aa381d3824ec2f5624b.tar.gz
ChibiOS-f8f59580aefc512e14857aa381d3824ec2f5624b.tar.bz2
ChibiOS-f8f59580aefc512e14857aa381d3824ec2f5624b.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3579 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/GCC/ARMCMx/STM32F4xx')
-rw-r--r--os/ports/GCC/ARMCMx/STM32F4xx/ld/STM32F407xG.ld13
1 files changed, 9 insertions, 4 deletions
diff --git a/os/ports/GCC/ARMCMx/STM32F4xx/ld/STM32F407xG.ld b/os/ports/GCC/ARMCMx/STM32F4xx/ld/STM32F407xG.ld
index 3f2324bee..d3533a8f2 100644
--- a/os/ports/GCC/ARMCMx/STM32F4xx/ld/STM32F407xG.ld
+++ b/os/ports/GCC/ARMCMx/STM32F4xx/ld/STM32F407xG.ld
@@ -94,10 +94,13 @@ SECTIONS
{
*(.eh_frame)
} > flash
-
- . = ALIGN(8);
- _etext = .;
- _textdata = _etext;
+
+ .endtext : ONLY_IF_RO
+ {
+ . = ALIGN(8);
+ _etext = .;
+ _textdata = _etext;
+ } > flash
.stacks :
{
@@ -116,6 +119,7 @@ SECTIONS
.data :
{
+ . = ALIGN(4);
PROVIDE(_data = .);
*(.data)
. = ALIGN(4);
@@ -128,6 +132,7 @@ SECTIONS
.bss :
{
+ . = ALIGN(4);
PROVIDE(_bss_start = .);
*(.bss)
. = ALIGN(4);