Skip to content

Commit 93a0b9c

Browse files
committed
STM32L4xx : GCC_ARM remove zero bss, in startup.
zero bss is done in libc init after call to _start.
1 parent ee22d0a commit 93a0b9c

File tree

3 files changed

+0
-47
lines changed

3 files changed

+0
-47
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/device/TOOLCHAIN_GCC_ARM/startup_stm32l476xx.S

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

6763
.equ BootRAM, 0xF1E0F85F
6864
/**
@@ -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_STM32L4/TARGET_L476_L486/device/TOOLCHAIN_GCC_ARM/startup_stm32l476xx.S

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ defined in linker script */
5959
.word _sdata
6060
/* end address for the .data section. defined in linker script */
6161
.word _edata
62-
/* start address for the .bss section. defined in linker script */
63-
.word _sbss
64-
/* end address for the .bss section. defined in linker script */
65-
.word _ebss
66-
6762
.equ BootRAM, 0xF1E0F85F
6863
/**
6964
* @brief This is the code that gets called when the processor first
@@ -96,17 +91,6 @@ LoopCopyDataInit:
9691
adds r2, r0, r1
9792
cmp r2, r3
9893
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
11094

11195
/* Call the clock system intitialization function.*/
11296
bl SystemInit

targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/device/TOOLCHAIN_GCC_ARM/startup_stm32l432xx.S

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ defined in linker script */
5959
.word _sdata
6060
/* end address for the .data section. defined in linker script */
6161
.word _edata
62-
/* start address for the .bss section. defined in linker script */
63-
.word _sbss
64-
/* end address for the .bss section. defined in linker script */
65-
.word _ebss
66-
6762
.equ BootRAM, 0xF1E0F85F
6863
/**
6964
* @brief This is the code that gets called when the processor first
@@ -96,17 +91,6 @@ LoopCopyDataInit:
9691
adds r2, r0, r1
9792
cmp r2, r3
9893
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
11094

11195
/* Call the clock system intitialization function.*/
11296
bl SystemInit

0 commit comments

Comments
 (0)