Skip to content

linker: Include the .ARM.extab section for Rust #78901

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

Closed
wants to merge 1 commit into from

Conversation

d3zd3z
Copy link
Contributor

@d3zd3z d3zd3z commented Sep 23, 2024

This is a little complicated. We currently just jump directly to rust's panic handler, so we don't actually need these unwind tables. But, they would be needed if we ever really handle panic. As of the time of this change, the tables seem to just be 24 bytes of ROM space.

In Rust, unwind tables are not used for ordinary code, but for recovery from panic.

This is a little complicated.  We currently just jump directly to rust's
panic handler, so we don't actually need these unwind tables.  But, they
would be needed if we ever really handle panic.  As of the time of this
change, the tables seem to just be 24 bytes of ROM space.

In Rust, unwind tables are not used for ordinary code, but for recovery
from panic.

Signed-off-by: David Brown <[email protected]>
@d3zd3z d3zd3z requested a review from stephanosio September 23, 2024 21:41
@zephyrbot zephyrbot added size: XS A PR changing only a single line of code area: Architectures area: ARM ARM (32-bit) Architecture labels Sep 23, 2024
@d3zd3z
Copy link
Contributor Author

d3zd3z commented Sep 23, 2024

This change likely won't be able to merge until #78306 merges, as it hits a compliance failure due to the CONFIG_RUST symbol not yet being present.

@d3zd3z
Copy link
Contributor Author

d3zd3z commented Sep 23, 2024

Another option would be to just include this as part of #78306, so that both are brought in together. Although the simple tests in the current module do not provoke the failure, most non-trivial work on the module will require this.

@d3zd3z
Copy link
Contributor Author

d3zd3z commented Sep 25, 2024

Including this inside of #78306.

@d3zd3z d3zd3z closed this Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Architectures area: ARM ARM (32-bit) Architecture size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants