You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/04/26 06:18:10 UTC

[mynewt-core] 03/03: bsp/stm32fx: Remove call to __libc_init_array

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 415ed47be9101a0824fe512cbbbd9c619fbf8b0d
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Wed Apr 21 10:50:14 2021 +0200

    bsp/stm32fx: Remove call to __libc_init_array
    
    Function __libc_init_array() call is now present in _start,
    so there is no need to call it twice.
    
    Only two STM32 bsp had this call, now all BSPs behave alike.
---
 hw/bsp/nucleo-f303k8/src/arch/cortex_m4/startup_stm32f303x8.s     | 2 --
 hw/bsp/stm32f429discovery/src/arch/cortex_m4/startup_STM32F429x.s | 2 --
 2 files changed, 4 deletions(-)

diff --git a/hw/bsp/nucleo-f303k8/src/arch/cortex_m4/startup_stm32f303x8.s b/hw/bsp/nucleo-f303k8/src/arch/cortex_m4/startup_stm32f303x8.s
index f98e680..04e8147 100644
--- a/hw/bsp/nucleo-f303k8/src/arch/cortex_m4/startup_stm32f303x8.s
+++ b/hw/bsp/nucleo-f303k8/src/arch/cortex_m4/startup_stm32f303x8.s
@@ -105,8 +105,6 @@ LoopFillZerobss:
 
 /* Call the clock system intitialization function.*/
     bl  SystemInit
-/* Call static constructors */
-    bl __libc_init_array
 /* Call the application's entry point.*/
     bl  _start
 
diff --git a/hw/bsp/stm32f429discovery/src/arch/cortex_m4/startup_STM32F429x.s b/hw/bsp/stm32f429discovery/src/arch/cortex_m4/startup_STM32F429x.s
index 8174e5f..c7f483f 100644
--- a/hw/bsp/stm32f429discovery/src/arch/cortex_m4/startup_STM32F429x.s
+++ b/hw/bsp/stm32f429discovery/src/arch/cortex_m4/startup_STM32F429x.s
@@ -109,8 +109,6 @@ LoopFillZerobss:
 
 /* Call the clock system intitialization function.*/
   bl  SystemInit
-/* Call static constructors */
-    bl __libc_init_array
 /* Call the application's entry point.*/
   bl  _start
   bx  lr