Skip to content

Commit 759837a

Browse files
committed
STM32F207: GCC_ARM remove zero bss, in startup.
zero bss is done in libc init after call to _start.
1 parent 03fc9f4 commit 759837a

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/device/TOOLCHAIN_GCC_ARM/startup_stm32f207xx.s

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ defined in linker script */
5757
.word _sdata
5858
/* end address for the .data section. defined in linker script */
5959
.word _edata
60-
/* start address for the .bss section. defined in linker script */
61-
.word _sbss
62-
/* end address for the .bss section. defined in linker script */
63-
.word _ebss
6460
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6561

6662
/**
@@ -94,17 +90,6 @@ LoopCopyDataInit:
9490
adds r2, r0, r1
9591
cmp r2, r3
9692
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
10893

10994
/* Call the clock system initialization function.*/
11095
bl SystemInit
@@ -520,4 +505,4 @@ g_pfnVectors:
520505
.weak HASH_RNG_IRQHandler
521506
.thumb_set HASH_RNG_IRQHandler,Default_Handler
522507

523-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
508+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)