diff --git a/miosix/arch/arm7_lpc2000/lpc2138_miosix_board/miosix.ld b/miosix/arch/arm7_lpc2000/lpc2138_miosix_board/miosix.ld index af7c176e286a2166a337d6b1dc3cce295eaac63d..a8dfede135f26b4028b8e835a814793d9d8e6cfd 100644 --- a/miosix/arch/arm7_lpc2000/lpc2138_miosix_board/miosix.ld +++ b/miosix/arch/arm7_lpc2000/lpc2138_miosix_board/miosix.ld @@ -182,9 +182,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -196,6 +193,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_efm32gg/efm32gg332f1024_wandstem/efm32_1M+128k_rom_usbbootloader.ld b/miosix/arch/cortexM3_efm32gg/efm32gg332f1024_wandstem/efm32_1M+128k_rom_usbbootloader.ld index e619d5631bd84a1c225477a77047e233a386ed6b..03b686abb4a3bfbf347c1dc0f9f3d51a4af3b9bb 100644 --- a/miosix/arch/cortexM3_efm32gg/efm32gg332f1024_wandstem/efm32_1M+128k_rom_usbbootloader.ld +++ b/miosix/arch/cortexM3_efm32gg/efm32gg332f1024_wandstem/efm32_1M+128k_rom_usbbootloader.ld @@ -125,9 +125,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -139,6 +136,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f100c8_microboard/stm32_63k+8k_rom.ld b/miosix/arch/cortexM3_stm32/stm32f100c8_microboard/stm32_63k+8k_rom.ld index 5cca70ac0d08b0b7357c0d13d21d675702949f41..fbc362d41022b4e3a5b41bc9828c5785331ebda9 100644 --- a/miosix/arch/cortexM3_stm32/stm32f100c8_microboard/stm32_63k+8k_rom.ld +++ b/miosix/arch/cortexM3_stm32/stm32f100c8_microboard/stm32_63k+8k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f100cb_tempsensor/stm32_127k+8k_rom.ld b/miosix/arch/cortexM3_stm32/stm32f100cb_tempsensor/stm32_127k+8k_rom.ld index c684f603cab469231676578719f84b029aeca184..1934a5cabd1ec3e95d3380fa553bed0f257c0da7 100644 --- a/miosix/arch/cortexM3_stm32/stm32f100cb_tempsensor/stm32_127k+8k_rom.ld +++ b/miosix/arch/cortexM3_stm32/stm32f100cb_tempsensor/stm32_127k+8k_rom.ld @@ -142,9 +142,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -156,6 +153,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f100rb_stm32vldiscovery/stm32_128k+8k_rom.ld b/miosix/arch/cortexM3_stm32/stm32f100rb_stm32vldiscovery/stm32_128k+8k_rom.ld index 8fc6fd93350c774a9e3cd5c627f20f908a1c4c65..40711f37b0234206f442d01b6029a7d4c6378493 100644 --- a/miosix/arch/cortexM3_stm32/stm32f100rb_stm32vldiscovery/stm32_128k+8k_rom.ld +++ b/miosix/arch/cortexM3_stm32/stm32f100rb_stm32vldiscovery/stm32_128k+8k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f100rc_solertegiard/stm32_256k+24k_rom.ld b/miosix/arch/cortexM3_stm32/stm32f100rc_solertegiard/stm32_256k+24k_rom.ld index f02ab1669c747e25c03753c40f6be8bd16ee28e6..af413015a005a70845f25744f3142090bcfb0116 100644 --- a/miosix/arch/cortexM3_stm32/stm32f100rc_solertegiard/stm32_256k+24k_rom.ld +++ b/miosix/arch/cortexM3_stm32/stm32f100rc_solertegiard/stm32_256k+24k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f103c8_breakout/stm32_64k+20k_rom.ld b/miosix/arch/cortexM3_stm32/stm32f103c8_breakout/stm32_64k+20k_rom.ld index f36141c9aa48c64030e817cc27f0fde95c43302a..3affd0a089d8d1be92f300ecf85c029802dad7f3 100644 --- a/miosix/arch/cortexM3_stm32/stm32f103c8_breakout/stm32_64k+20k_rom.ld +++ b/miosix/arch/cortexM3_stm32/stm32f103c8_breakout/stm32_64k+20k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f103cb_als_mainboard_rev2/stm32_128k+20k_rom.ld b/miosix/arch/cortexM3_stm32/stm32f103cb_als_mainboard_rev2/stm32_128k+20k_rom.ld index 2022d7db32d8f87ea6c4382fb299178d66e0f349..40e9d54c253bc1197e03eefd265894e03e7ba5fc 100644 --- a/miosix/arch/cortexM3_stm32/stm32f103cb_als_mainboard_rev2/stm32_128k+20k_rom.ld +++ b/miosix/arch/cortexM3_stm32/stm32f103cb_als_mainboard_rev2/stm32_128k+20k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f103ve_mp3v2/stm32_512k+64k_ram.ld b/miosix/arch/cortexM3_stm32/stm32f103ve_mp3v2/stm32_512k+64k_ram.ld index 37e12192e11a0b1644108fbc13b615a0ceefb8e4..0e516afeae03fda8da119e332295c34a81f8f4f9 100644 --- a/miosix/arch/cortexM3_stm32/stm32f103ve_mp3v2/stm32_512k+64k_ram.ld +++ b/miosix/arch/cortexM3_stm32/stm32f103ve_mp3v2/stm32_512k+64k_ram.ld @@ -113,9 +113,6 @@ SECTIONS } > ram __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram */ .data : ALIGN(8) { @@ -126,6 +123,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f103ve_mp3v2/stm32_512k+64k_rom.ld b/miosix/arch/cortexM3_stm32/stm32f103ve_mp3v2/stm32_512k+64k_rom.ld index 714abfead9473cc14d6c0c432b78d77719b1ded2..017f9a8f0c621408e109dec00853b05af2830635 100644 --- a/miosix/arch/cortexM3_stm32/stm32f103ve_mp3v2/stm32_512k+64k_rom.ld +++ b/miosix/arch/cortexM3_stm32/stm32f103ve_mp3v2/stm32_512k+64k_rom.ld @@ -142,9 +142,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -156,6 +153,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f103ve_strive_mini/stm32_512k+64k_rom.ld b/miosix/arch/cortexM3_stm32/stm32f103ve_strive_mini/stm32_512k+64k_rom.ld index 53ff29400dd3b323d167a2f77709948db0762adb..67c801af15d557039d4cfbcffd86a280857685af 100644 --- a/miosix/arch/cortexM3_stm32/stm32f103ve_strive_mini/stm32_512k+64k_rom.ld +++ b/miosix/arch/cortexM3_stm32/stm32f103ve_strive_mini/stm32_512k+64k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f103ze_redbull_v2/stm32_512k+64k_rom.ld b/miosix/arch/cortexM3_stm32/stm32f103ze_redbull_v2/stm32_512k+64k_rom.ld index 53ff29400dd3b323d167a2f77709948db0762adb..67c801af15d557039d4cfbcffd86a280857685af 100644 --- a/miosix/arch/cortexM3_stm32/stm32f103ze_redbull_v2/stm32_512k+64k_rom.ld +++ b/miosix/arch/cortexM3_stm32/stm32f103ze_redbull_v2/stm32_512k+64k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_all_in_xram.ld b/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_all_in_xram.ld index 1f213d41e2dc3c769608bb72b9b785c12b1d9079..80e2d6ebce94ce7aa1e57a08b90b4e45ae11f096 100644 --- a/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_all_in_xram.ld +++ b/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_all_in_xram.ld @@ -114,9 +114,6 @@ SECTIONS } > ram __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram */ .data : ALIGN(8) { @@ -127,6 +124,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_rom.ld b/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_rom.ld index 4fbecb9b722facb5ffbbbbe3525093e489f4464e..9f4ffe0d46272305b2c61ef9f4c0d1358e50876c 100644 --- a/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_rom.ld +++ b/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_xram.ld b/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_xram.ld index efe4c0a4ee9a493819ea225f3084b3dab1c89a60..5abc607a4b92a0de99883e5a418de2d048c8bdf2 100644 --- a/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_xram.ld +++ b/miosix/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/stm32_512k+64k_xram.ld @@ -142,9 +142,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -156,6 +153,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32f2/stm32f205_generic/stm32_1m+128k_rom.ld b/miosix/arch/cortexM3_stm32f2/stm32f205_generic/stm32_1m+128k_rom.ld index 2b5498ed13c4a9e8bc5d1d2df071bfec707e8cf3..e72e7644ea6e50350175cad5be8c83141ab34f4c 100644 --- a/miosix/arch/cortexM3_stm32f2/stm32f205_generic/stm32_1m+128k_rom.ld +++ b/miosix/arch/cortexM3_stm32f2/stm32f205_generic/stm32_1m+128k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32f2/stm32f205rc_skyward_stormtrooper/stm32_512k+128k_rom.ld b/miosix/arch/cortexM3_stm32f2/stm32f205rc_skyward_stormtrooper/stm32_512k+128k_rom.ld index 9f09a9e56b67cf7b6c0c28627bb8abe54c78b69e..62406d42b17c1cf7ab13a60cd89c62b0127abf94 100644 --- a/miosix/arch/cortexM3_stm32f2/stm32f205rc_skyward_stormtrooper/stm32_512k+128k_rom.ld +++ b/miosix/arch/cortexM3_stm32f2/stm32f205rc_skyward_stormtrooper/stm32_512k+128k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32f2/stm32f205rg_sony-newman/stm32_1M+128k_rom.ld b/miosix/arch/cortexM3_stm32f2/stm32f205rg_sony-newman/stm32_1M+128k_rom.ld index 587f4e53606a71025045e537c1172a571caacf39..34220fdfcb6dd1d48d248ee0f7c58fb03632ff08 100644 --- a/miosix/arch/cortexM3_stm32f2/stm32f205rg_sony-newman/stm32_1M+128k_rom.ld +++ b/miosix/arch/cortexM3_stm32f2/stm32f205rg_sony-newman/stm32_1M+128k_rom.ld @@ -173,9 +173,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -187,6 +184,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_all_in_xram.ld b/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_all_in_xram.ld index adde25b7348dd651fcbc48376b34a4e6212a30c8..cda0e1ae149cb409dc65791461000dd4ba951744 100644 --- a/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_all_in_xram.ld +++ b/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_all_in_xram.ld @@ -115,9 +115,6 @@ SECTIONS } > ram __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -129,6 +126,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_all_in_xram_processes.ld b/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_all_in_xram_processes.ld index ed9326cbd79f21d18ff859bc704bc381d0a7758c..78332e67cbc7dc2457ac89b8b03d03c0aa52dfc9 100644 --- a/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_all_in_xram_processes.ld +++ b/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_all_in_xram_processes.ld @@ -124,9 +124,6 @@ SECTIONS } > ram __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -138,6 +135,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_rom.ld b/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_rom.ld index 2b5498ed13c4a9e8bc5d1d2df071bfec707e8cf3..e72e7644ea6e50350175cad5be8c83141ab34f4c 100644 --- a/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_rom.ld +++ b/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_xram.ld b/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_xram.ld index fb078c6330f32b2df3189a311608033c8838cc6e..939c744d893c03a73a6aed6bbcd43b0edd74eaca 100644 --- a/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_xram.ld +++ b/miosix/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/stm32_1m+128k_xram.ld @@ -142,9 +142,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -156,6 +153,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32f2/stm32f207ze_als_camboard/stm32_1m+128k_rom.ld b/miosix/arch/cortexM3_stm32f2/stm32f207ze_als_camboard/stm32_1m+128k_rom.ld index 1c0f924310bd5e0f7fe753ae47ee2236c04d5cdc..1adf73d4e11777e0dfc2cd5ba312e414d5e06b31 100644 --- a/miosix/arch/cortexM3_stm32f2/stm32f207ze_als_camboard/stm32_1m+128k_rom.ld +++ b/miosix/arch/cortexM3_stm32f2/stm32f207ze_als_camboard/stm32_1m+128k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/stm32_1m+128k_code_in_xram.ld b/miosix/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/stm32_1m+128k_code_in_xram.ld index 5e683c06a0ec1978e5b60f046bcddc4b6e9195f2..68084192e735a8c33146c69c8049352ad6a3b11c 100644 --- a/miosix/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/stm32_1m+128k_code_in_xram.ld +++ b/miosix/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/stm32_1m+128k_code_in_xram.ld @@ -141,9 +141,6 @@ SECTIONS } > xram __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > xram + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/stm32_1m+128k_rom.ld b/miosix/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/stm32_1m+128k_rom.ld index 2b5498ed13c4a9e8bc5d1d2df071bfec707e8cf3..e72e7644ea6e50350175cad5be8c83141ab34f4c 100644 --- a/miosix/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/stm32_1m+128k_rom.ld +++ b/miosix/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/stm32_1m+128k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM3_stm32l1/stm32l151c8_als_mainboard/stm32_64k+10k_rom.ld b/miosix/arch/cortexM3_stm32l1/stm32l151c8_als_mainboard/stm32_64k+10k_rom.ld index 2468a791a8d5c4882bec7473a3e90740c78543cb..208e7dfb70076485e1e521e1f677c752bb84fd53 100644 --- a/miosix/arch/cortexM3_stm32l1/stm32l151c8_als_mainboard/stm32_64k+10k_rom.ld +++ b/miosix/arch/cortexM3_stm32l1/stm32l151c8_als_mainboard/stm32_64k+10k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f401re_nucleo/stm32_512k+96k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f401re_nucleo/stm32_512k+96k_rom.ld index 5af6b90ae51c63185dad212ae1b09693bbd28ac0..4849ba38e7e1f85b2d64b26211051033f67de116 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f401re_nucleo/stm32_512k+96k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f401re_nucleo/stm32_512k+96k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f401vc_stm32f4discovery/stm32_256k+64k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f401vc_stm32f4discovery/stm32_256k+64k_rom.ld index 96c858c7337f88dc4604d0679fb07916f0146c0d..b6d7ac95041d3d55ef6c1c05563e9f8d6e4aa219 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f401vc_stm32f4discovery/stm32_256k+64k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f401vc_stm32f4discovery/stm32_256k+64k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f407vg_bitsboard/stm32_1m+192k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f407vg_bitsboard/stm32_1m+192k_rom.ld index b83253e126307639a819b6ed46d22e4b53fa100b..8c0d05921db4c70a2ccc4bc9a1291c4a5ea39126 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f407vg_bitsboard/stm32_1m+192k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f407vg_bitsboard/stm32_1m+192k_rom.ld @@ -151,9 +151,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -165,6 +162,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > smallram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_ram.ld b/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_ram.ld index 046a76111e1d370175337d8abdbdf52f372e8173..7ee6385a2c252918bbbc27088cf73801e03d3730 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_ram.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_ram.ld @@ -128,9 +128,6 @@ SECTIONS } > largeram __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram */ .data : ALIGN(8) { @@ -141,6 +138,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > largeram + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_rom.ld index b83253e126307639a819b6ed46d22e4b53fa100b..8c0d05921db4c70a2ccc4bc9a1291c4a5ea39126 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_rom.ld @@ -151,9 +151,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -165,6 +162,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > smallram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_rom_processes.ld b/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_rom_processes.ld index 47e71389fe9d969b2936bd69da5da2495eb90bff..1d822401e5be56b2ea4da6d252868de26b849ce1 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_rom_processes.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/stm32_1m+192k_rom_processes.ld @@ -158,9 +158,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -172,6 +169,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > smallram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f407vg_thermal_test_chip/stm32_1m+192k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f407vg_thermal_test_chip/stm32_1m+192k_rom.ld index 960944d740d409610438349ea1f706994af82e6d..179737e3d2d016b95f7549e4570e5029981b801b 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f407vg_thermal_test_chip/stm32_1m+192k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f407vg_thermal_test_chip/stm32_1m+192k_rom.ld @@ -131,9 +131,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -145,6 +142,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > largeram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f411re_nucleo/stm32_512k+128k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f411re_nucleo/stm32_512k+128k_rom.ld index 1c0f924310bd5e0f7fe753ae47ee2236c04d5cdc..1adf73d4e11777e0dfc2cd5ba312e414d5e06b31 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f411re_nucleo/stm32_512k+128k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f411re_nucleo/stm32_512k+128k_rom.ld @@ -141,9 +141,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -155,6 +152,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+256k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+256k_rom.ld index 0924f0d5bc402546ffa2915013ed99afd7aec0ea..e2425d265aaf968808b58724cebe4f785e4a21e8 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+256k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+256k_rom.ld @@ -151,9 +151,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -165,6 +162,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > smallram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+6m_xram.ld b/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+6m_xram.ld index 49d21dbabb31c26b2d5c97092428b7278f73d57d..b61f04cea1b19c15a54b55515100951d99048fc8 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+6m_xram.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+6m_xram.ld @@ -154,9 +154,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -168,6 +165,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > xram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+8m_xram.ld b/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+8m_xram.ld index 27db7dd239c1251a49e9d19a6a058b2a29c63091..78fe53104dfa12f2e1586b9af09c97b7958ecb4c 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+8m_xram.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_oledboard2/stm32_2m+8m_xram.ld @@ -148,9 +148,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -162,6 +159,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > xram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/stm32_2m+256k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/stm32_2m+256k_rom.ld index 2d33bd9caa17b81e26fec63d0c79c21d08976ba1..8fd1a4604886d0b8a6a95dc1e214ace4310b8e59 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/stm32_2m+256k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/stm32_2m+256k_rom.ld @@ -151,9 +151,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -165,6 +162,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > smallram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/stm32_2m+8m_xram.ld b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/stm32_2m+8m_xram.ld index d3fcd30d5fe5d9b35678b8d53a43b1d5ff4abeb7..13a231e179a892613609d21ab6a013f789a556e0 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/stm32_2m+8m_xram.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_anakin/stm32_2m+8m_xram.ld @@ -148,9 +148,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -162,6 +159,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > xram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_homeone/stm32_2m+256k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_homeone/stm32_2m+256k_rom.ld index 187fddec49bbd4ffea8b478a93712897415e8f19..cfcc2ce53bd9e1b821cbfe90aeedd73fcdce1522 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_homeone/stm32_2m+256k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_homeone/stm32_2m+256k_rom.ld @@ -152,9 +152,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -166,6 +163,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > smallram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_homeone/stm32_2m+8m_xram.ld b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_homeone/stm32_2m+8m_xram.ld index c853c62f44e8db829bbbc3529f0e41eb47e8c3fc..b6a0d26683cbff52ac66b7f275f9269d61dfbf41 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_homeone/stm32_2m+8m_xram.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_skyward_homeone/stm32_2m+8m_xram.ld @@ -149,9 +149,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -163,6 +160,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > xram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+256k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+256k_rom.ld index 0924f0d5bc402546ffa2915013ed99afd7aec0ea..e2425d265aaf968808b58724cebe4f785e4a21e8 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+256k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+256k_rom.ld @@ -151,9 +151,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -165,6 +162,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > smallram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+6m_xram.ld b/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+6m_xram.ld index 49d21dbabb31c26b2d5c97092428b7278f73d57d..b61f04cea1b19c15a54b55515100951d99048fc8 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+6m_xram.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+6m_xram.ld @@ -154,9 +154,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -168,6 +165,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > xram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+8m_xram.ld b/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+8m_xram.ld index 27db7dd239c1251a49e9d19a6a058b2a29c63091..78fe53104dfa12f2e1586b9af09c97b7958ecb4c 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+8m_xram.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/stm32_2m+8m_xram.ld @@ -148,9 +148,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -162,6 +159,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > xram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+12m_xram.ld b/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+12m_xram.ld index 527f7328ad79e3a7e4d063f881815bb24534c23a..452e15ef20cc2c7ad73dd71446c3bd9512d2e38f 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+12m_xram.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+12m_xram.ld @@ -154,9 +154,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -168,6 +165,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > xram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+16m_xram.ld b/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+16m_xram.ld index e84af80f2de92c8f6c4bd27c6af14bd342dabdd5..cd8c633c7d68f39a2e44d7b20214a1c880cc6a4b 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+16m_xram.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+16m_xram.ld @@ -148,9 +148,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -162,6 +159,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > xram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+384k_rom.ld b/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+384k_rom.ld index 431916793377dc14c15a7b2d603ea7a1ad46c657..641526cdfa6f104a92ac07317ae9b5a773173868 100644 --- a/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+384k_rom.ld +++ b/miosix/arch/cortexM4_stm32f4/stm32f469ni_stm32f469i-disco/stm32_2m+384k_rom.ld @@ -151,9 +151,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -165,6 +162,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > smallram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM7_stm32f7/stm32f746zg_nucleo/stm32_1024k+256k_rom.ld b/miosix/arch/cortexM7_stm32f7/stm32f746zg_nucleo/stm32_1024k+256k_rom.ld index 9c44df7fca03e58498383e955ae9ef39e2f62e8b..ed31c59f885b96464028ceafac21eb6a254efb0f 100644 --- a/miosix/arch/cortexM7_stm32f7/stm32f746zg_nucleo/stm32_1024k+256k_rom.ld +++ b/miosix/arch/cortexM7_stm32f7/stm32f746zg_nucleo/stm32_1024k+256k_rom.ld @@ -145,9 +145,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -159,6 +156,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .; diff --git a/miosix/arch/cortexM7_stm32h7/stm32h753xi_eval/stm32_2m+512k_rom.ld b/miosix/arch/cortexM7_stm32h7/stm32h753xi_eval/stm32_2m+512k_rom.ld index 11f5412d027e26fd2d5bf19b350ab45e71a66285..47cf466f153199aed1949bb11151b37b816c4516 100644 --- a/miosix/arch/cortexM7_stm32h7/stm32h753xi_eval/stm32_2m+512k_rom.ld +++ b/miosix/arch/cortexM7_stm32h7/stm32h753xi_eval/stm32_2m+512k_rom.ld @@ -138,9 +138,6 @@ SECTIONS } > flash __exidx_end = .; - . = ALIGN(8); - _etext = .; - /* .data section: global variables go to ram, but also store a copy to flash to initialize them */ .data : ALIGN(8) @@ -152,6 +149,7 @@ SECTIONS . = ALIGN(8); _edata = .; } > ram AT > flash + _etext = LOADADDR(.data); /* .bss section: uninitialized global variables go to ram */ _bss_start = .;