Skip to content

Commit 30a859f

Browse files
keith-packardwearyzen
authored andcommitted
m-profile/gcc: Support picolibc startup mechanism (ARM-software#246)
Use picolibc's _start function instead of providing our own. Signed-off-by: Keith Packard <[email protected]> (cherry picked from commit e902f86)
1 parent 06d952b commit 30a859f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMSIS/Core/Include/m-profile/cmsis_gcc_m.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929

3030
#include <arm_acle.h>
3131

32+
#if defined(__PICOLIBC__) && !defined(__PROGRAM_START)
33+
#define __PROGRAM_START _start
34+
#endif
35+
3236
/* ######################### Startup and Lowlevel Init ######################## */
3337
#ifndef __PROGRAM_START
3438

0 commit comments

Comments
 (0)