From 0df842ab09c5749193620b84e0372caf5273ff87 Mon Sep 17 00:00:00 2001 From: Jen-Tse Huang Date: Wed, 28 Jan 2026 09:44:47 +0100 Subject: [PATCH] AC6: Fix BSS section and update toolchain identification --- board/Corstone-300/Corstone-300.sct | 2 +- src/app_main.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/Corstone-300/Corstone-300.sct b/board/Corstone-300/Corstone-300.sct index d0edac58..339afcec 100644 --- a/board/Corstone-300/Corstone-300.sct +++ b/board/Corstone-300/Corstone-300.sct @@ -72,7 +72,7 @@ LR_ITCM ITCM_BASE ITCM_SIZE ;----------------------------------------------------- ; BSS section - zero-initialized data in DTCM ;----------------------------------------------------- - ER_BSS +0 UNINIT + ER_BSS +0 { *(.bss) *(.bss.*) diff --git a/src/app_main.c b/src/app_main.c index efaddcf8..524c1bb1 100644 --- a/src/app_main.c +++ b/src/app_main.c @@ -34,12 +34,12 @@ static const osThreadAttr_t executorch_thread_attr = { /*----------------------------------------------------------------------------- Toolchain identification *----------------------------------------------------------------------------*/ -#if defined(__clang__) +#if defined(__ARMCC_VERSION) + #define TOOLCHAIN_NAME "Arm Compiler" +#elif defined(__clang__) #define TOOLCHAIN_NAME "Clang/LLVM" #elif defined(__GNUC__) #define TOOLCHAIN_NAME "GCC" -#elif defined(__ARMCC_VERSION) - #define TOOLCHAIN_NAME "Arm Compiler" #else #define TOOLCHAIN_NAME "Unknown" #endif