diff options
Diffstat (limited to 'os/ports/GCC/ARMCMx/STM32L1xx')
-rw-r--r-- | os/ports/GCC/ARMCMx/STM32L1xx/ld/STM32L152xB.ld | 13 |
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);
|