Skip to content

Commit 26f3352

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

File tree

7 files changed

+0
-106
lines changed

7 files changed

+0
-106
lines changed

targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/device/TOOLCHAIN_GCC_ARM/startup_stm32f303xc.S

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ defined in linker script */
5050
.word _sdata
5151
/* end address for the .data section. defined in linker script */
5252
.word _edata
53-
/* start address for the .bss section. defined in linker script */
54-
.word _sbss
55-
/* end address for the .bss section. defined in linker script */
56-
.word _ebss
5753

5854
.equ BootRAM, 0xF1E0F85F
5955
/**
@@ -87,18 +83,6 @@ LoopCopyDataInit:
8783
adds r2, r0, r1
8884
cmp r2, r3
8985
bcc CopyDataInit
90-
ldr r2, =_sbss
91-
b LoopFillZerobss
92-
/* Zero fill the bss segment. */
93-
FillZerobss:
94-
movs r3, #0
95-
str r3, [r2], #4
96-
97-
LoopFillZerobss:
98-
ldr r3, = _ebss
99-
cmp r2, r3
100-
bcc FillZerobss
101-
10286
/* Call the clock system intitialization function.*/
10387
bl SystemInit
10488
/* Call static constructors */

targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/device/TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ defined in linker script */
5050
.word _sdata
5151
/* end address for the .data section. defined in linker script */
5252
.word _edata
53-
/* start address for the .bss section. defined in linker script */
54-
.word _sbss
55-
/* end address for the .bss section. defined in linker script */
56-
.word _ebss
5753

5854
.equ BootRAM, 0xF1E0F85F
5955
/**
@@ -87,17 +83,6 @@ LoopCopyDataInit:
8783
adds r2, r0, r1
8884
cmp r2, r3
8985
bcc CopyDataInit
90-
ldr r2, =_sbss
91-
b LoopFillZerobss
92-
/* Zero fill the bss segment. */
93-
FillZerobss:
94-
movs r3, #0
95-
str r3, [r2], #4
96-
97-
LoopFillZerobss:
98-
ldr r3, = _ebss
99-
cmp r2, r3
100-
bcc FillZerobss
10186

10287
/* Call the clock system intitialization function.*/
10388
bl SystemInit

targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/device/TOOLCHAIN_GCC_ARM/startup_stm32f302x8.S

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ defined in linker script */
5050
.word _sdata
5151
/* end address for the .data section. defined in linker script */
5252
.word _edata
53-
/* start address for the .bss section. defined in linker script */
54-
.word _sbss
55-
/* end address for the .bss section. defined in linker script */
56-
.word _ebss
5753

5854
.equ BootRAM, 0xF1E0F85F
5955
/**
@@ -87,17 +83,6 @@ LoopCopyDataInit:
8783
adds r2, r0, r1
8884
cmp r2, r3
8985
bcc CopyDataInit
90-
ldr r2, =_sbss
91-
b LoopFillZerobss
92-
/* Zero fill the bss segment. */
93-
FillZerobss:
94-
movs r3, #0
95-
str r3, [r2], #4
96-
97-
LoopFillZerobss:
98-
ldr r3, = _ebss
99-
cmp r2, r3
100-
bcc FillZerobss
10186

10287
/* Call the clock system intitialization function.*/
10388
bl SystemInit

targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/device/TOOLCHAIN_GCC_ARM/startup_stm32f303x8.S

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ defined in linker script */
5050
.word _sdata
5151
/* end address for the .data section. defined in linker script */
5252
.word _edata
53-
/* start address for the .bss section. defined in linker script */
54-
.word _sbss
55-
/* end address for the .bss section. defined in linker script */
56-
.word _ebss
5753

5854
.equ BootRAM, 0xF1E0F85F
5955
/**
@@ -87,17 +83,6 @@ LoopCopyDataInit:
8783
adds r2, r0, r1
8884
cmp r2, r3
8985
bcc CopyDataInit
90-
ldr r2, =_sbss
91-
b LoopFillZerobss
92-
/* Zero fill the bss segment. */
93-
FillZerobss:
94-
movs r3, #0
95-
str r3, [r2], #4
96-
97-
LoopFillZerobss:
98-
ldr r3, = _ebss
99-
cmp r2, r3
100-
bcc FillZerobss
10186

10287
/* Call the clock system intitialization function.*/
10388
bl SystemInit

targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/device/TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ defined in linker script */
5050
.word _sdata
5151
/* end address for the .data section. defined in linker script */
5252
.word _edata
53-
/* start address for the .bss section. defined in linker script */
54-
.word _sbss
55-
/* end address for the .bss section. defined in linker script */
56-
.word _ebss
5753

5854
.equ BootRAM, 0xF1E0F85F
5955
/**
@@ -87,17 +83,6 @@ LoopCopyDataInit:
8783
adds r2, r0, r1
8884
cmp r2, r3
8985
bcc CopyDataInit
90-
ldr r2, =_sbss
91-
b LoopFillZerobss
92-
/* Zero fill the bss segment. */
93-
FillZerobss:
94-
movs r3, #0
95-
str r3, [r2], #4
96-
97-
LoopFillZerobss:
98-
ldr r3, = _ebss
99-
cmp r2, r3
100-
bcc FillZerobss
10186

10287
/* Call the clock system intitialization function.*/
10388
bl SystemInit

targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/device/TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ defined in linker script */
5050
.word _sdata
5151
/* end address for the .data section. defined in linker script */
5252
.word _edata
53-
/* start address for the .bss section. defined in linker script */
54-
.word _sbss
55-
/* end address for the .bss section. defined in linker script */
56-
.word _ebss
5753

5854
.equ BootRAM, 0xF1E0F85F
5955
/**
@@ -87,17 +83,6 @@ LoopCopyDataInit:
8783
adds r2, r0, r1
8884
cmp r2, r3
8985
bcc CopyDataInit
90-
ldr r2, =_sbss
91-
b LoopFillZerobss
92-
/* Zero fill the bss segment. */
93-
FillZerobss:
94-
movs r3, #0
95-
str r3, [r2], #4
96-
97-
LoopFillZerobss:
98-
ldr r3, = _ebss
99-
cmp r2, r3
100-
bcc FillZerobss
10186

10287
/* Call the clock system intitialization function.*/
10388
bl SystemInit

targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/device/TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ defined in linker script */
5050
.word _sdata
5151
/* end address for the .data section. defined in linker script */
5252
.word _edata
53-
/* start address for the .bss section. defined in linker script */
54-
.word _sbss
55-
/* end address for the .bss section. defined in linker script */
56-
.word _ebss
5753

5854
.equ BootRAM, 0xF1E0F85F
5955
/**
@@ -87,17 +83,6 @@ LoopCopyDataInit:
8783
adds r2, r0, r1
8884
cmp r2, r3
8985
bcc CopyDataInit
90-
ldr r2, =_sbss
91-
b LoopFillZerobss
92-
/* Zero fill the bss segment. */
93-
FillZerobss:
94-
movs r3, #0
95-
str r3, [r2], #4
96-
97-
LoopFillZerobss:
98-
ldr r3, = _ebss
99-
cmp r2, r3
100-
bcc FillZerobss
10186

10287
/* Call the clock system intitialization function.*/
10388
bl SystemInit

0 commit comments

Comments
 (0)