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

Add a feature to stop linking the default panic #812

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

BryanKadzban
Copy link
Contributor

When end-user crates provide a panic handler, this symbol is not needed ... but the linker isn't smart enough to optimize it away, even though the PROVIDE line isn't used (the symbol is provided by the rust function tagged with #[panic_handler]). Those crates can enable this feature to remove the PROVIDE line from the linker script, to stop linking this default panic handler.

See #588 for some info.

@Urhengulas Urhengulas enabled auto-merge March 25, 2024 14:39
BryanKadzban and others added 2 commits March 25, 2024 15:55
When end-user crates provide a panic handler, this symbol is not needed
... but the linker isn't smart enough to optimize it away, even though
the PROVIDE line isn't used (the symbol is provided by the rust function
tagged with #[panic_handler]).  Those crates can enable this feature to
remove the PROVIDE line from the linker script, to stop linking this
default panic handler.
@Urhengulas Urhengulas added this pull request to the merge queue Mar 25, 2024
Merged via the queue into knurling-rs:main with commit b5bb117 Mar 25, 2024
14 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