Skip to content

Commit ee22d0a

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

File tree

14 files changed

+1
-212
lines changed

14 files changed

+1
-212
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/device/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.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
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6662

6763
/**
@@ -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_STM32F4/TARGET_DISCO_F401VC/device/TOOLCHAIN_GCC_ARM/startup_stm32f401xc.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
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6662

6763
/**
@@ -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_STM32F4/TARGET_DISCO_F429ZI/device/TOOLCHAIN_GCC_ARM/startup_stm32f429xx.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
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6662

6763
/**
@@ -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_STM32F4/TARGET_DISCO_F469NI/device/TOOLCHAIN_GCC_ARM/startup_stm32f469xx.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
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6662

6763
/**
@@ -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_STM32F4/TARGET_ELMO_F411RE/device/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.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
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6662

6763
/**
@@ -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_STM32F4/TARGET_F429_F439/device/TOOLCHAIN_GCC_ARM/startup_stm32f429xx.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
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6662

6763
/**
@@ -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_STM32F4/TARGET_MTS_MDOT_F411RE/device/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S

Lines changed: 0 additions & 16 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
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6662

6763
/**
@@ -95,18 +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
109-
11094
/* Call the clock system intitialization function.*/
11195
bl SystemInit
11296
/* Call static constructors */

targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/device/TOOLCHAIN_GCC_ARM/startup_stm32f401xe.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
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6662

6763
/**
@@ -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_STM32F4/TARGET_NUCLEO_F410RB/device/TOOLCHAIN_GCC_ARM/startup_stm32f410rx.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
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6662

6763
/**
@@ -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_STM32F4/TARGET_NUCLEO_F411RE/device/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.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
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
6662

6763
/**
@@ -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)