Skip to content

add oslib option, fix crt0 flag#13

Merged
kammce merged 3 commits intolibhal:mainfrom
DolphinGui:flagfix
Feb 13, 2026
Merged

add oslib option, fix crt0 flag#13
kammce merged 3 commits intolibhal:mainfrom
DolphinGui:flagfix

Conversation

@DolphinGui
Copy link
Copy Markdown

https://gcc.gnu.org/onlinedocs/gcc/Picolibc-Options.html

This fixes a latent build error that appears on environments that try building with a "hosted" crt0. The crt0 flag was conflated with the oslib flag, which resulted in an attempt to link to a non-existant hosted oslib. We provide a proper option for oslib, as well as adding the "none" and default option.

This also "changes" the default crt0 flag, but given that the flag was never correctly applied anyways, it would be more stable to reflect the default linkage to the default crt0 instead of the "semihosted" crt0. The default option for crt0 was named "default" instead of being None to avoid confusion with the "none" option.

@kammce
Copy link
Copy Markdown
Member

kammce commented Feb 13, 2026

Thanks so much for the fast fix @DolphinGui!!

@kammce kammce merged commit 43066fc into libhal:main Feb 13, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants