From fc7079185c1a8abf9a4c1698accfd1ce30fb7595 Mon Sep 17 00:00:00 2001 From: Robin Kastberg Date: Fri, 23 May 2025 11:07:05 +0000 Subject: [PATCH] cmake: linker_script: fix __exidx_start This makes c++ sample `sample.libraries.hash_map.newlib.cxx_unordered_map.djb2` start working on gcc w. `CMAKE_LINKER_GENERATOR=y`. Signed-off-by: Robin Kastberg --- cmake/linker_script/arm/linker.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/linker_script/arm/linker.cmake b/cmake/linker_script/arm/linker.cmake index 2a4f61f6e15..43ace74142e 100644 --- a/cmake/linker_script/arm/linker.cmake +++ b/cmake/linker_script/arm/linker.cmake @@ -125,7 +125,7 @@ endif() zephyr_linker_section(NAME .ARM.exidx GROUP ROM_REGION) # Here the original linker would check for __GCC_LINKER_CMD__, need to check toolchain linker ? #if(__GCC_LINKER_CMD__) - zephyr_linker_section_configure(SECTION .ARM.exidx INPUT ".gnu.linkonce.armexidx.*") + zephyr_linker_section_configure(SECTION .ARM.exidx INPUT ".gnu.linkonce.armexidx.*" SYMBOLS "__exidx_start" "__exidx_end") #endif()