aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/GCC/ARMCMx/STM32L1xx
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/STM32L1xx
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/STM32L1xx')
-rw-r--r--os/ports/GCC/ARMCMx/STM32L1xx/ld/STM32L152xB.ld13
1 files changed, 9 insertions, 4 deletions
diff --git a/os/ports/GCC/ARMCMx/STM32L1xx/ld/STM32L152xB.ld b/os/ports/GCC/ARMCMx/STM32L1xx/ld/STM32L152xB.ld
index 35a6ddabd..a4f78b500 100644
--- a/os/ports/GCC/ARMCMx/STM32L1xx/ld/STM32L152xB.ld
+++ b/os/ports/GCC/ARMCMx/STM32L1xx/ld/STM32L152xB.ld
@@ -92,10 +92,13 @@ SECTIONS
{
*(.eh_frame)
} > flash
-
- . = ALIGN(8);
- _etext = .;
- _textdata = _etext;
+
+ .endtext : ONLY_IF_RO
+ {
+ . = ALIGN(8);
+ _etext = .;
+ _textdata = _etext;
+ } > flash
.stacks :
{
@@ -114,6 +117,7 @@ SECTIONS
.data :
{
+ . = ALIGN(4);
PROVIDE(_data = .);
*(.data)
. = ALIGN(4);
@@ -126,6 +130,7 @@ SECTIONS
.bss :
{
+ . = ALIGN(4);
PROVIDE(_bss_start = .);
*(.bss)
. = ALIGN(4);