Rust VM application generates .eh_frame section#9
Merged
ringtailsoftware merged 1 commit intoringtailsoftware:mainfrom Jan 9, 2026
Merged
Rust VM application generates .eh_frame section#9ringtailsoftware merged 1 commit intoringtailsoftware:mainfrom
ringtailsoftware merged 1 commit intoringtailsoftware:mainfrom
Conversation
an .eh_frame section is generated by more complex rust applications. this will be put before .text section if not discarded.
Owner
|
Thanks! |
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.
Hi, I am currently testing uvm32 with some Rust vm apps.
I found a problem if the rust app gets a bit more complex then the "Hello World" example an .eh_frame section is generated in the compiled ELF.
The section was ~30 bytes long and was places before my .text section in the .bin file after objcopy.
This lead to an invalid opcode error when loading the file.
This took my by surprise since the smaller rust application worked just fine.
The .eh-frame is for exception handling and can probably safly discarded for this uvm32 usecase:
linuxfoundation ehframe
It's only a small change but I hope it will help others avoid the same Issue