m-profile/gcc: Support picolibc startup mechanism (#246) Use picolibc's _start function instead of providing our own. (cherry picked from commit e902f869b5b1bb683c53bca0929ce49401c637ab) (cherry picked from commit 30a859f44ef8ab4dc8f84b03ed586fd16ccf9d74) Original-Signed-off-by: Keith Packard <keithp@keithp.com> GitOrigin-RevId: 30a859f44ef8ab4dc8f84b03ed586fd16ccf9d74 Cr-Build-Id: 8707175054774127297 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8707175054774127297 Copybot-Job-Name: zephyr-cmsis_6-copybot-downstream Change-Id: Ifef8939a93002635d6b8e1db0379538b5ea847c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/cmsis_6/+/6828027 Bot-Commit: ChromeOS Copybot <copybot@chops-service-accounts.iam.gserviceaccount.com> Tested-by: ChromeOS Copybot <copybot@chops-service-accounts.iam.gserviceaccount.com> Commit-Queue: ChromeOS Copybot <copybot@chops-service-accounts.iam.gserviceaccount.com>
diff --git a/CMSIS/Core/Include/m-profile/cmsis_gcc_m.h b/CMSIS/Core/Include/m-profile/cmsis_gcc_m.h index bb15b76..a0ac310 100644 --- a/CMSIS/Core/Include/m-profile/cmsis_gcc_m.h +++ b/CMSIS/Core/Include/m-profile/cmsis_gcc_m.h
@@ -29,6 +29,10 @@ #include <arm_acle.h> +#if defined(__PICOLIBC__) && !defined(__PROGRAM_START) +#define __PROGRAM_START _start +#endif + /* ######################### Startup and Lowlevel Init ######################## */ #ifndef __PROGRAM_START