Skip to content

Commit 479a1a2

Browse files
committed
STM32L1xx : GCC_ARM remove zero bss, in startup.
zero bss is done in libc init after call to _start.
1 parent f3b1c0a commit 479a1a2

File tree

4 files changed

+0
-60
lines changed

4 files changed

+0
-60
lines changed

targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device/TOOLCHAIN_GCC_ARM/startup_stm32l152xc.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, 0xF108F85F
6864
/**
@@ -95,17 +91,6 @@ LoopCopyDataInit:
9591
adds r2, r0, r1
9692
cmp r2, r3
9793
bcc CopyDataInit
98-
ldr r2, =_sbss
99-
b LoopFillZerobss
100-
/* Zero fill the bss segment. */
101-
FillZerobss:
102-
movs r3, #0
103-
str r3, [r2], #4
104-
105-
LoopFillZerobss:
106-
ldr r3, = _ebss
107-
cmp r2, r3
108-
bcc FillZerobss
10994

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

targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device/TOOLCHAIN_GCC_ARM/startup_stm32l152xe.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, 0xF108F85F
6864
/**
@@ -97,17 +93,6 @@ LoopCopyDataInit:
9793
adds r2, r0, r1
9894
cmp r2, r3
9995
bcc CopyDataInit
100-
ldr r2, =_sbss
101-
b LoopFillZerobss
102-
/* Zero fill the bss segment. */
103-
FillZerobss:
104-
movs r3, #0
105-
str r3, [r2], #4
106-
107-
LoopFillZerobss:
108-
ldr r3, = _ebss
109-
cmp r2, r3
110-
bcc FillZerobss
11196

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

targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/device/TOOLCHAIN_GCC_ARM/startup_stm32l151xc.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, 0xF108F85F
6864
/**
@@ -95,17 +91,6 @@ LoopCopyDataInit:
9591
adds r2, r0, r1
9692
cmp r2, r3
9793
bcc CopyDataInit
98-
ldr r2, =_sbss
99-
b LoopFillZerobss
100-
/* Zero fill the bss segment. */
101-
FillZerobss:
102-
movs r3, #0
103-
str r3, [r2], #4
104-
105-
LoopFillZerobss:
106-
ldr r3, = _ebss
107-
cmp r2, r3
108-
bcc FillZerobss
10994

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

targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/TOOLCHAIN_GCC_ARM/startup_stm32l151xc.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, 0xF108F85F
6864
/**
@@ -95,17 +91,6 @@ LoopCopyDataInit:
9591
adds r2, r0, r1
9692
cmp r2, r3
9793
bcc CopyDataInit
98-
ldr r2, =_sbss
99-
b LoopFillZerobss
100-
/* Zero fill the bss segment. */
101-
FillZerobss:
102-
movs r3, #0
103-
str r3, [r2], #4
104-
105-
LoopFillZerobss:
106-
ldr r3, = _ebss
107-
cmp r2, r3
108-
bcc FillZerobss
10994

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

0 commit comments

Comments
 (0)