From 49841c295d5dcdb7dd7738260dbe2debd610a52b Mon Sep 17 00:00:00 2001 From: bjoernQ Date: Tue, 16 Aug 2022 09:42:36 +0200 Subject: [PATCH] Fix ESP32-C3 builds on latest nightlies --- esp32c3-hal/ld/bl-riscv-link.x | 4 ++-- esp32c3-hal/ld/db-riscv-link.x | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/esp32c3-hal/ld/bl-riscv-link.x b/esp32c3-hal/ld/bl-riscv-link.x index 5273e8a9fe0..1b08d736beb 100644 --- a/esp32c3-hal/ld/bl-riscv-link.x +++ b/esp32c3-hal/ld/bl-riscv-link.x @@ -59,8 +59,8 @@ SECTIONS KEEP(*(.init)); KEEP(*(.init.rust)); . = ALIGN(4); - (*(.trap)); - (*(.trap.rust)); + KEEP(*(.trap)); + KEEP(*(.trap.rust)); *(.text .text.*); _etext = .; diff --git a/esp32c3-hal/ld/db-riscv-link.x b/esp32c3-hal/ld/db-riscv-link.x index 2843e5da480..8414aae6922 100644 --- a/esp32c3-hal/ld/db-riscv-link.x +++ b/esp32c3-hal/ld/db-riscv-link.x @@ -52,8 +52,8 @@ SECTIONS KEEP(*(.init)); KEEP(*(.init.rust)); . = ALIGN(4); - (*(.trap)); - (*(.trap.rust)); + KEEP(*(.trap)); + KEEP(*(.trap.rust)); *(.text .text.*); _etext = .;