diff --git a/variants/DISCO_F100RB/ldscript.ld b/variants/DISCO_F100RB/ldscript.ld index 30691dde20..181653ca2d 100644 --- a/variants/DISCO_F100RB/ldscript.ld +++ b/variants/DISCO_F100RB/ldscript.ld @@ -70,7 +70,7 @@ } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/DISCO_F407VG/ldscript.ld b/variants/DISCO_F407VG/ldscript.ld index db6157ed08..a62771e9b8 100644 --- a/variants/DISCO_F407VG/ldscript.ld +++ b/variants/DISCO_F407VG/ldscript.ld @@ -58,7 +58,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/DISCO_F746NG/ldscript.ld b/variants/DISCO_F746NG/ldscript.ld index 64a497f77e..27d5332210 100644 --- a/variants/DISCO_F746NG/ldscript.ld +++ b/variants/DISCO_F746NG/ldscript.ld @@ -64,7 +64,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text ALIGN(8): + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_F030R8/ldscript.ld b/variants/NUCLEO_F030R8/ldscript.ld index 63c04c2be4..1aae47014f 100644 --- a/variants/NUCLEO_F030R8/ldscript.ld +++ b/variants/NUCLEO_F030R8/ldscript.ld @@ -57,7 +57,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ @@ -164,4 +164,4 @@ SECTIONS } .ARM.attributes 0 : { *(.ARM.attributes) } -} \ No newline at end of file +} diff --git a/variants/NUCLEO_F091RC/ldscript.ld b/variants/NUCLEO_F091RC/ldscript.ld index a0a04e613c..cb7cb07344 100644 --- a/variants/NUCLEO_F091RC/ldscript.ld +++ b/variants/NUCLEO_F091RC/ldscript.ld @@ -70,7 +70,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text ALIGN(4) : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_F103RB/ldscript.ld b/variants/NUCLEO_F103RB/ldscript.ld index 1608bb0834..b9878522d4 100644 --- a/variants/NUCLEO_F103RB/ldscript.ld +++ b/variants/NUCLEO_F103RB/ldscript.ld @@ -70,7 +70,7 @@ } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_F207ZG/ldscript.ld b/variants/NUCLEO_F207ZG/ldscript.ld index 7f21f37973..d66bb099c0 100644 --- a/variants/NUCLEO_F207ZG/ldscript.ld +++ b/variants/NUCLEO_F207ZG/ldscript.ld @@ -76,7 +76,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_F302R8/ldscript.ld b/variants/NUCLEO_F302R8/ldscript.ld index ccc0f5dc8a..acc99dc150 100644 --- a/variants/NUCLEO_F302R8/ldscript.ld +++ b/variants/NUCLEO_F302R8/ldscript.ld @@ -57,7 +57,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_F303K8/ldscript.ld b/variants/NUCLEO_F303K8/ldscript.ld index aa4b00ce52..a977ba3ec1 100644 --- a/variants/NUCLEO_F303K8/ldscript.ld +++ b/variants/NUCLEO_F303K8/ldscript.ld @@ -58,7 +58,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_F401RE/ldscript.ld b/variants/NUCLEO_F401RE/ldscript.ld index 9315f80bd8..f896aa9951 100644 --- a/variants/NUCLEO_F401RE/ldscript.ld +++ b/variants/NUCLEO_F401RE/ldscript.ld @@ -57,7 +57,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_F411RE/ldscript.ld b/variants/NUCLEO_F411RE/ldscript.ld index 8e3dc2fe74..243041c46e 100644 --- a/variants/NUCLEO_F411RE/ldscript.ld +++ b/variants/NUCLEO_F411RE/ldscript.ld @@ -76,7 +76,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text ALIGN(8): + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_F429ZI/ldscript.ld b/variants/NUCLEO_F429ZI/ldscript.ld index 620d37674b..5eb295c6da 100644 --- a/variants/NUCLEO_F429ZI/ldscript.ld +++ b/variants/NUCLEO_F429ZI/ldscript.ld @@ -59,7 +59,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_L053R8/ldscript.ld b/variants/NUCLEO_L053R8/ldscript.ld index c6c7f252ec..768ec48171 100644 --- a/variants/NUCLEO_L053R8/ldscript.ld +++ b/variants/NUCLEO_L053R8/ldscript.ld @@ -70,7 +70,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_L152RE/ldscript.ld b/variants/NUCLEO_L152RE/ldscript.ld index 90d11149af..7fe665d63e 100644 --- a/variants/NUCLEO_L152RE/ldscript.ld +++ b/variants/NUCLEO_L152RE/ldscript.ld @@ -76,7 +76,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_L432KC/ldscript.ld b/variants/NUCLEO_L432KC/ldscript.ld index a82bccfd24..407bbb90a5 100644 --- a/variants/NUCLEO_L432KC/ldscript.ld +++ b/variants/NUCLEO_L432KC/ldscript.ld @@ -58,7 +58,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(8): { . = ALIGN(8); *(.text) /* .text sections (code) */ diff --git a/variants/NUCLEO_L476RG/ldscript.ld b/variants/NUCLEO_L476RG/ldscript.ld index af6147aea8..9ed90ab065 100644 --- a/variants/NUCLEO_L476RG/ldscript.ld +++ b/variants/NUCLEO_L476RG/ldscript.ld @@ -70,7 +70,7 @@ SECTIONS } >FLASH /* The program code and other data goes into FLASH */ - .text : + .text ALIGN(4): { . = ALIGN(4); *(.text) /* .text sections (code) */