Skip to content

linux: dso_debug: use width-agnostic ELF types in its APIs - #241

Merged
schopin-mozilla merged 1 commit into
dso-main-execfrom
dso-width-agnostic
Sep 17, 2026
Merged

schopin-mozilla merged 1 commit into
dso-main-execfrom
dso-width-agnostic

Conversation

@schopin-mozilla

Copy link
Copy Markdown
Collaborator

The goblin crate exposes a set of types that can represent headers of
both 32-bit and 64-bit ELF objects, and that's what module_reader uses.
In order to facilitate interaction between those two Rust module, let's
use that rather than the hardcoded native variants in our pub(crate)
APIs. The module still uses the native versions at parsing time, so it's
not portable, but it will make the module list work easier.


Stack created with GitHub Stacks CLI • Give Feedback 💬

The goblin crate exposes a set of types that can represent headers of
both 32-bit and 64-bit ELF objects, and that's what module_reader uses.
In order to facilitate interaction between those two Rust module, let's
use that rather than the hardcoded native variants in our pub(crate)
APIs. The module still uses the native versions at parsing time, so it's
not portable, but it will make the module list work easier.

@gabrielesvelto gabrielesvelto left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup

@schopin-mozilla
schopin-mozilla merged commit d07513e into main Sep 17, 2026
16 checks passed
@schopin-mozilla
schopin-mozilla deleted the dso-width-agnostic branch September 17, 2026 11:38
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