m-profile/gcc: Support picolibc startup mechanism#246
Merged
JonatanAntoni merged 1 commit intoARM-software:mainfrom Aug 4, 2025
Merged
m-profile/gcc: Support picolibc startup mechanism#246JonatanAntoni merged 1 commit intoARM-software:mainfrom
JonatanAntoni merged 1 commit intoARM-software:mainfrom
Conversation
Use picolibc's _start function instead of providing our own. Signed-off-by: Keith Packard <keithp@keithp.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for picolibc's startup mechanism in the CMSIS GCC M-profile header by defining __PROGRAM_START to use picolibc's _start function when picolibc is detected and no custom program start is already defined.
- Adds conditional definition of
__PROGRAM_STARTmacro for picolibc compatibility - Uses picolibc's built-in
_startfunction instead of providing a custom startup implementation
Test Results 264 files - 108 264 suites - 108 0s ⏱️ - 8m 39s Results for commit 4ea1acf. ± Comparison against base commit df9173e. This pull request removes 49 and adds 56 tests. Note that renamed tests count towards both.This pull request removes 5 skipped tests and adds 2 skipped tests. Note that renamed tests count towards both. |
JonatanAntoni
approved these changes
Aug 4, 2025
keith-packard
added a commit
to keith-packard/CMSIS_6
that referenced
this pull request
Aug 4, 2025
Use picolibc's _start function instead of providing our own. Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit e902f86)
wearyzen
pushed a commit
to zephyrproject-rtos/CMSIS_6
that referenced
this pull request
Aug 7, 2025
Use picolibc's _start function instead of providing our own. Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit e902f86)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use picolibc's _start function instead of providing our own.