Skip to content
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

Refactor and simplify the elf module a bit #796

Merged
merged 5 commits into from
Feb 28, 2025

Conversation

jessebraham
Copy link
Member

@jessebraham jessebraham commented Feb 28, 2025

  • Eliminated the ElfFirmwareImage struct, as this was essentially just wrapping xmas_elf::ElfFile
  • Merged RomSegment and CodeSegment structs into a new Segment struct, as they were identical
  • Re-export a couple types from the elf module which are present in public APIs
  • Removed unused segments_with_load_addresses function from FirmwareImage trait

Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

LGTM! This is a nice step for #792, I also really like the renaming of some variables from image to elf, I had this pending.

@jessebraham jessebraham added this pull request to the merge queue Feb 28, 2025
Merged via the queue into esp-rs:main with commit f73fef4 Feb 28, 2025
24 checks passed
@jessebraham jessebraham deleted the refactor/elf branch February 28, 2025 11:15
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