From c052a38e2a0947eb9c4cb7a38c9a8e71770ec6a2 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 10 Sep 2019 11:28:17 +1000 Subject: [PATCH] bootloader: Link RTC clock functions to the iram_loader section As flash encryption & secure boot needs these functions after the app is loaded. Fixes regression introduced in fb72a6f629a62c0655e8eff1d2d3f67d7aa9b62c --- components/bootloader/subproject/main/esp32.bootloader.ld | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/bootloader/subproject/main/esp32.bootloader.ld b/components/bootloader/subproject/main/esp32.bootloader.ld index 847049096..3dca75609 100644 --- a/components/bootloader/subproject/main/esp32.bootloader.ld +++ b/components/bootloader/subproject/main/esp32.bootloader.ld @@ -40,6 +40,7 @@ SECTIONS *(.iram1 .iram1.*) /* catch stray IRAM_ATTR */ *liblog.a:(.literal .text .literal.* .text.*) *libgcc.a:(.literal .text .literal.* .text.*) + *libbootloader_support.a:bootloader_clock.*(.literal .text .literal.* .text.*) *libbootloader_support.a:bootloader_common.*(.literal .text .literal.* .text.*) *libbootloader_support.a:bootloader_flash.*(.literal .text .literal.* .text.*) *libbootloader_support.a:bootloader_random.*(.literal .text .literal.* .text.*) @@ -53,6 +54,7 @@ SECTIONS *libmicro-ecc.a:*.*(.literal .text .literal.* .text.*) *libspi_flash.a:*.*(.literal .text .literal.* .text.*) *libsoc.a:rtc_wdt.*(.literal .text .literal.* .text.*) + *libsoc.a:rtc_clk.*(.literal .text .literal.* .text.*) *libefuse.a:*.*(.literal .text .literal.* .text.*) *(.fini.literal) *(.fini)