Skip to content

Commit a711ff3

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

File tree

4 files changed

+0
-60
lines changed

4 files changed

+0
-60
lines changed

targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/device/TOOLCHAIN_GCC_ARM/startup_stm32f746xx.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 initialization function.*/
11196
bl SystemInit

targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/device/TOOLCHAIN_GCC_ARM/startup_stm32f769xx.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 initialization function.*/
11196
bl SystemInit

targets/TARGET_STM/TARGET_STM32F7/TARGET_F746_F756/device/TOOLCHAIN_GCC_ARM/startup_stm32f746xx.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 initialization function.*/
11196
bl SystemInit

targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/device/TOOLCHAIN_GCC_ARM/startup_stm32f769xx.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 initialization function.*/
11196
bl SystemInit

0 commit comments

Comments
 (0)