From da6662c79325812950abe902b62994f91dd183cd Mon Sep 17 00:00:00 2001 From: Mason Tran Date: Wed, 2 Dec 2020 16:57:46 -0500 Subject: [PATCH] [efr32] remove -nostartfiles to use Newlib _start (#5905) Remove -nostartfiles. There's currently no custom __START defined anywhere. Remove -D__STARTUP_CLEAR_BSS for silabs. Standard initialization should already take care of this. --- examples/Makefile-efr32mg1 | 2 -- examples/Makefile-efr32mg12 | 2 -- examples/Makefile-efr32mg13 | 2 -- examples/Makefile-efr32mg21 | 2 -- third_party/silabs/Makefile.am | 1 - 5 files changed, 9 deletions(-) diff --git a/examples/Makefile-efr32mg1 b/examples/Makefile-efr32mg1 index d1a612b0a54..4fc7590f9f7 100644 --- a/examples/Makefile-efr32mg1 +++ b/examples/Makefile-efr32mg1 @@ -96,7 +96,6 @@ COMMONCFLAGS := \ -Os \ -g \ -I$(HAL_CONF_DIR) \ - -D__START=main \ -D$(MCU) \ $(EFR32_CONFIG_FILE_CPPFLAGS) \ $(NULL) @@ -138,7 +137,6 @@ CXXFLAGS += \ LDFLAGS += \ $(COMMONCFLAGS) \ $(target_LDFLAGS) \ - -nostartfiles \ -specs=nano.specs \ -specs=nosys.specs \ -Wl,--gc-sections \ diff --git a/examples/Makefile-efr32mg12 b/examples/Makefile-efr32mg12 index 744c0ebfcfd..02a8d3b328e 100644 --- a/examples/Makefile-efr32mg12 +++ b/examples/Makefile-efr32mg12 @@ -114,7 +114,6 @@ COMMONCFLAGS := \ -Os \ -g \ -I$(HAL_CONF_DIR) \ - -D__START=main \ -D$(MCU) \ $(EFR32_CONFIG_FILE_CPPFLAGS) \ $(NULL) @@ -156,7 +155,6 @@ CXXFLAGS += \ LDFLAGS += \ $(COMMONCFLAGS) \ $(target_LDFLAGS) \ - -nostartfiles \ -specs=nano.specs \ -specs=nosys.specs \ -Wl,--gc-sections \ diff --git a/examples/Makefile-efr32mg13 b/examples/Makefile-efr32mg13 index 6463e64b8db..00828d9cf64 100644 --- a/examples/Makefile-efr32mg13 +++ b/examples/Makefile-efr32mg13 @@ -100,7 +100,6 @@ COMMONCFLAGS := \ -Os \ -g \ -I$(HAL_CONF_DIR) \ - -D__START=main \ -D$(MCU) \ $(EFR32_CONFIG_FILE_CPPFLAGS) \ $(NULL) @@ -142,7 +141,6 @@ CXXFLAGS += \ LDFLAGS += \ $(COMMONCFLAGS) \ $(target_LDFLAGS) \ - -nostartfiles \ -specs=nano.specs \ -specs=nosys.specs \ -Wl,--gc-sections \ diff --git a/examples/Makefile-efr32mg21 b/examples/Makefile-efr32mg21 index 161e66ee669..c2987aa33fd 100644 --- a/examples/Makefile-efr32mg21 +++ b/examples/Makefile-efr32mg21 @@ -106,7 +106,6 @@ COMMONCFLAGS := \ -Os \ -g \ -I$(HAL_CONF_DIR) \ - -D__START=main \ -D$(MCU) \ $(EFR32_CONFIG_FILE_CPPFLAGS) \ $(NULL) @@ -148,7 +147,6 @@ CXXFLAGS += \ LDFLAGS += \ $(COMMONCFLAGS) \ $(target_LDFLAGS) \ - -nostartfiles \ -specs=nano.specs \ -specs=nosys.specs \ -Wl,--gc-sections \ diff --git a/third_party/silabs/Makefile.am b/third_party/silabs/Makefile.am index 5825b2228a7..1a483045202 100644 --- a/third_party/silabs/Makefile.am +++ b/third_party/silabs/Makefile.am @@ -165,7 +165,6 @@ libsilabs_mbedtls_a_SOURCES = # ============================================================================= COMMONCPPFLAGS = \ - -D__STARTUP_CLEAR_BSS \ -I$(srcdir) \ -I$(top_srcdir)/include \ -I$(top_srcdir)/src/core \