Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable newlib syscalls for baremetal target #78

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Disable newlib syscalls for baremetal target #78

merged 1 commit into from
Apr 30, 2024

Conversation

nbdd0121
Copy link
Contributor

@engdoreis and I discovered that newlib generates syscalls when stdio functions are used. This is not desirable and it's preferable to just have linker error instead for baremetal targets.

@luismarques
Copy link
Collaborator

I'm fine with this approach but did you consider overriding the newlib hooks instead?

@nbdd0121
Copy link
Contributor Author

nbdd0121 commented Apr 30, 2024

What do you mean by overriding newlib hooks? Do you mean overwriting functions like _write, _sbrk? I don't want to override these functions, but rather having compilation fail so I know that I didn't accidentally pull these in.

@luismarques luismarques merged commit 482ead1 into master Apr 30, 2024
2 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