Skip to content

Commit

Permalink
[efr32] remove -nostartfiles to use Newlib _start (openthread#5905)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lmnotran authored Dec 2, 2020
1 parent 8f2e113 commit da6662c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions examples/Makefile-efr32mg1
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ COMMONCFLAGS := \
-Os \
-g \
-I$(HAL_CONF_DIR) \
-D__START=main \
-D$(MCU) \
$(EFR32_CONFIG_FILE_CPPFLAGS) \
$(NULL)
Expand Down Expand Up @@ -138,7 +137,6 @@ CXXFLAGS += \
LDFLAGS += \
$(COMMONCFLAGS) \
$(target_LDFLAGS) \
-nostartfiles \
-specs=nano.specs \
-specs=nosys.specs \
-Wl,--gc-sections \
Expand Down
2 changes: 0 additions & 2 deletions examples/Makefile-efr32mg12
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ COMMONCFLAGS := \
-Os \
-g \
-I$(HAL_CONF_DIR) \
-D__START=main \
-D$(MCU) \
$(EFR32_CONFIG_FILE_CPPFLAGS) \
$(NULL)
Expand Down Expand Up @@ -156,7 +155,6 @@ CXXFLAGS += \
LDFLAGS += \
$(COMMONCFLAGS) \
$(target_LDFLAGS) \
-nostartfiles \
-specs=nano.specs \
-specs=nosys.specs \
-Wl,--gc-sections \
Expand Down
2 changes: 0 additions & 2 deletions examples/Makefile-efr32mg13
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ COMMONCFLAGS := \
-Os \
-g \
-I$(HAL_CONF_DIR) \
-D__START=main \
-D$(MCU) \
$(EFR32_CONFIG_FILE_CPPFLAGS) \
$(NULL)
Expand Down Expand Up @@ -142,7 +141,6 @@ CXXFLAGS += \
LDFLAGS += \
$(COMMONCFLAGS) \
$(target_LDFLAGS) \
-nostartfiles \
-specs=nano.specs \
-specs=nosys.specs \
-Wl,--gc-sections \
Expand Down
2 changes: 0 additions & 2 deletions examples/Makefile-efr32mg21
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ COMMONCFLAGS := \
-Os \
-g \
-I$(HAL_CONF_DIR) \
-D__START=main \
-D$(MCU) \
$(EFR32_CONFIG_FILE_CPPFLAGS) \
$(NULL)
Expand Down Expand Up @@ -148,7 +147,6 @@ CXXFLAGS += \
LDFLAGS += \
$(COMMONCFLAGS) \
$(target_LDFLAGS) \
-nostartfiles \
-specs=nano.specs \
-specs=nosys.specs \
-Wl,--gc-sections \
Expand Down
1 change: 0 additions & 1 deletion third_party/silabs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ libsilabs_mbedtls_a_SOURCES =
# =============================================================================

COMMONCPPFLAGS = \
-D__STARTUP_CLEAR_BSS \
-I$(srcdir) \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/core \
Expand Down

0 comments on commit da6662c

Please sign in to comment.