diff options
Diffstat (limited to 'os/ports/GCC/ARMCMx/STM32F1xx')
-rw-r--r-- | os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F100xB.ld | 13 | ||||
-rw-r--r-- | os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xB.ld | 13 | ||||
-rw-r--r-- | os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xE.ld | 13 | ||||
-rw-r--r-- | os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xG.ld | 13 | ||||
-rw-r--r-- | os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F107xC.ld | 13 |
5 files changed, 45 insertions, 20 deletions
diff --git a/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F100xB.ld b/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F100xB.ld index 306580eaa..8045d210d 100644 --- a/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F100xB.ld +++ b/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F100xB.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);
diff --git a/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xB.ld b/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xB.ld index 3ba473f16..4dd94bd7d 100644 --- a/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xB.ld +++ b/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xB.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);
diff --git a/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xE.ld b/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xE.ld index cfd4502f7..c200c342b 100644 --- a/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xE.ld +++ b/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xE.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);
diff --git a/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xG.ld b/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xG.ld index f4a15ebe4..614ef3187 100644 --- a/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xG.ld +++ b/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xG.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);
diff --git a/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F107xC.ld b/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F107xC.ld index b750500b4..0b7604ac8 100644 --- a/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F107xC.ld +++ b/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F107xC.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);
|