Skip to content

Add newtypes for ELF constants#894

Open
philipc wants to merge 20 commits intogimli-rs:mainfrom
philipc:newtype-elf
Open

Add newtypes for ELF constants#894
philipc wants to merge 20 commits intogimli-rs:mainfrom
philipc:newtype-elf

Conversation

@philipc
Copy link
Copy Markdown
Contributor

@philipc philipc commented May 10, 2026

Breaking changes:

  • All of the fields changed to newtypes.
  • Renamed build::elf::AttributesSubsubsection::tag to scope.
  • Renamed build::elf::AttributeTag to AttributeScope.
  • Replaced read::elf::VersionIndex with elf::VersymIndex and elf::VersionIndex.
  • Deleted read::elf::Dyn::Sword. DynamicTag is always i64.
  • elf::SHF_* constants changed from u32 to SectionFlags(u64).
  • elf::DF_* constants changed from u32 to DynamicFlags(u64).

Additionally, we no longer mask VERSYM_HIDDEN for vd_ndx and vna_other. This should never be set for these fields. Masking can be added back if it turns out to be encountered in practice.

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.

1 participant