Skip to content

Commit b225a5c

Browse files
committed
STM32F1xx : GCC_ARM remove zero bss done at startup.
Zero bss is done after the call to _start.
1 parent 702f64a commit b225a5c

File tree

3 files changed

+1
-45
lines changed

3 files changed

+1
-45
lines changed

targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ defined in linker script */
5858
.word _sdata
5959
/* end address for the .data section. defined in linker script */
6060
.word _edata
61-
/* start address for the .bss section. defined in linker script */
62-
.word _sbss
63-
/* end address for the .bss section. defined in linker script */
64-
.word _ebss
6561

6662
.equ BootRAM, 0xF108F85F
6763
/**
@@ -96,17 +92,6 @@ LoopCopyDataInit:
9692
adds r2, r0, r1
9793
cmp r2, r3
9894
bcc CopyDataInit
99-
ldr r2, =_sbss
100-
b LoopFillZerobss
101-
/* Zero fill the bss segment. */
102-
FillZerobss:
103-
movs r3, #0
104-
str r3, [r2], #4
105-
106-
LoopFillZerobss:
107-
ldr r3, = _ebss
108-
cmp r2, r3
109-
bcc FillZerobss
11095

11196
/* Call the clock system intitialization function.*/
11297
bl SystemInit

targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/TOOLCHAIN_GCC_ARM/startup_stm32f100xb.S

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ defined in linker script */
5858
.word _sdata
5959
/* end address for the .data section. defined in linker script */
6060
.word _edata
61-
/* start address for the .bss section. defined in linker script */
62-
.word _sbss
63-
/* end address for the .bss section. defined in linker script */
64-
.word _ebss
61+
6562

6663
.equ BootRAM, 0xF108F85F
6764
/**
@@ -94,17 +91,6 @@ LoopCopyDataInit:
9491
adds r2, r0, r1
9592
cmp r2, r3
9693
bcc CopyDataInit
97-
ldr r2, =_sbss
98-
b LoopFillZerobss
99-
/* Zero fill the bss segment. */
100-
FillZerobss:
101-
movs r3, #0
102-
str r3, [r2], #4
103-
104-
LoopFillZerobss:
105-
ldr r3, = _ebss
106-
cmp r2, r3
107-
bcc FillZerobss
10894

10995
/* Call the clock system intitialization function.*/
11096
bl SystemInit

targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ defined in linker script */
5858
.word _sdata
5959
/* end address for the .data section. defined in linker script */
6060
.word _edata
61-
/* start address for the .bss section. defined in linker script */
62-
.word _sbss
63-
/* end address for the .bss section. defined in linker script */
64-
.word _ebss
6561

6662
.equ BootRAM, 0xF108F85F
6763
/**
@@ -96,17 +92,6 @@ LoopCopyDataInit:
9692
adds r2, r0, r1
9793
cmp r2, r3
9894
bcc CopyDataInit
99-
ldr r2, =_sbss
100-
b LoopFillZerobss
101-
/* Zero fill the bss segment. */
102-
FillZerobss:
103-
movs r3, #0
104-
str r3, [r2], #4
105-
106-
LoopFillZerobss:
107-
ldr r3, = _ebss
108-
cmp r2, r3
109-
bcc FillZerobss
11095

11196
/* Call the clock system intitialization function.*/
11297
bl SystemInit

0 commit comments

Comments
 (0)