Skip to content

Rust VM application generates .eh_frame section#9

Merged
ringtailsoftware merged 1 commit intoringtailsoftware:mainfrom
revilo196:patch-1
Jan 9, 2026
Merged

Rust VM application generates .eh_frame section#9
ringtailsoftware merged 1 commit intoringtailsoftware:mainfrom
revilo196:patch-1

Conversation

@revilo196
Copy link
Contributor

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

an .eh_frame section is generated by more complex rust applications. this will be put before .text section if not discarded.
@ringtailsoftware ringtailsoftware merged commit 00f1a86 into ringtailsoftware:main Jan 9, 2026
1 check passed
@ringtailsoftware
Copy link
Owner

Thanks!

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