summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorzhouji <[email protected]>2022-04-19 16:43:28 +0800
committerguo <[email protected]>2022-04-20 17:32:02 +0800
commit60c96fbc12a717832f30853ad439a44582bd6360 (patch)
tree72e5de6bd6577c6365a7040779c5cf7855204994 /libcpu
parent41631fe712d2936cd348e920ec8df41396074d43 (diff)
[update] Removed C++ global constructor initialization, this method is not used in GCC4.7 and later versions.
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/cortex-a/start_gcc.S15
1 files changed, 0 insertions, 15 deletions
diff --git a/libcpu/arm/cortex-a/start_gcc.S b/libcpu/arm/cortex-a/start_gcc.S
index 5fcc0d03fe..f73b678f7e 100644
--- a/libcpu/arm/cortex-a/start_gcc.S
+++ b/libcpu/arm/cortex-a/start_gcc.S
@@ -154,21 +154,6 @@ bss_loop:
bl rt_hw_init_mmu_table
bl rt_hw_mmu_init
- /* call C++ constructors of global objects */
- ldr r0, =__ctors_start__
- ldr r1, =__ctors_end__
-
-ctor_loop:
- cmp r0, r1
- beq ctor_end
- ldr r2, [r0], #4
- stmfd sp!, {r0-r1}
- mov lr, pc
- bx r2
- ldmfd sp!, {r0-r1}
- b ctor_loop
-ctor_end:
-
/* start RT-Thread Kernel */
ldr pc, _rtthread_startup
_rtthread_startup: