From 2eb563406ffdfeee372e0f4d21d38e86ea75b913 Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Mon, 11 Jan 2021 12:25:18 +0800 Subject: [PATCH] esp_hw_support: fix esp_restart crash Closes https://github.com/espressif/esp-idf/issues/6297 --- components/esp_hw_support/component.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_hw_support/component.mk b/components/esp_hw_support/component.mk index da4d6c1e71..867056fdc0 100644 --- a/components/esp_hw_support/component.mk +++ b/components/esp_hw_support/component.mk @@ -1,5 +1,6 @@ COMPONENT_SRCDIRS := . port/$(IDF_TARGET) COMPONENT_ADD_INCLUDEDIRS := . include port/$(IDF_TARGET)/private_include +COMPONENT_ADD_LDFRAGMENTS := linker.lf port/$(IDF_TARGET)/rtc_clk.o: CFLAGS += -fno-jump-tables -fno-tree-switch-conversion