-
Notifications
You must be signed in to change notification settings - Fork 57
Rewrite: Add elf library for elf_sections.rs #292
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
Open
an-owl
wants to merge
28
commits into
rust-osdev:main
Choose a base branch
from
an-owl:elf
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
fef9bc6
multiboot2: elf_sections: add `elf` library into cargo.toml
an-owl 9d2e015
multiboot2: self_sections: Fixed bug where `flags` truncated bits.
an-owl 8c7e7e6
multiboot2: self_sections: Removed ElfSectionIter, replaced with `Sec…
an-owl b059c4d
multiboot2: self_sections: Implemented From to cast &ElfSectionsTag i…
an-owl 7d58983
multiboot2: elf_sections: Removed hand-rolled elf types and replaced …
an-owl ba8a113
multiboot2: elf_sections: Added methods for getting the section name.
an-owl ef0f0b9
multiboot2: builder: Fixed bug in test `build_and_parse` where ElfSec…
an-owl 698f270
multiboot2: lib: Fixed up unit tests for changes in elf_sections
an-owl 7e4957f
integration tests: Fixed up integration tests for changes in elf_sect…
an-owl 627bfb4
multiboot2: elf_sections: Replaced magic numbers with constants from …
an-owl 9579bca
multiboot2: elf_sections: Added `UserDefined` section type to `ElfSec…
an-owl b70df61
multiboot2: elf_sections: Added `STRINGS` and `THREAD_LOCAL` flags to…
an-owl 272f6f1
multiboot2: elf_sections: add `elf` library into cargo.toml
an-owl 1531d25
multiboot2: self_sections: Fixed bug where `flags` truncated bits.
an-owl 1242b28
multiboot2: self_sections: Removed ElfSectionIter, replaced with `Sec…
an-owl 1495736
multiboot2: self_sections: Implemented From to cast &ElfSectionsTag i…
an-owl 67d1427
multiboot2: elf_sections: Removed hand-rolled elf types and replaced …
an-owl 928910a
multiboot2: elf_sections: Added methods for getting the section name.
an-owl 36b10c9
multiboot2: builder: Fixed bug in test `build_and_parse` where ElfSec…
an-owl c1897ae
multiboot2: lib: Fixed up unit tests for changes in elf_sections
an-owl cc737c9
integration tests: Fixed up integration tests for changes in elf_sect…
an-owl 282eeca
multiboot2: elf_sections: Replaced magic numbers with constants from …
an-owl 0b8ca24
multiboot2: elf_sections: Added `UserDefined` section type to `ElfSec…
an-owl 089a839
multiboot2: elf_sections: Added `STRINGS` and `THREAD_LOCAL` flags to…
an-owl 2a55795
Updated CHANGELOG.md
an-owl e455889
multiboot2: Tweaked ElfSectionsExt docs
an-owl 9b87c7a
multiboot2: elf_sections: Changed pointer cast to use `core::ptr::wit…
an-owl 6039b98
Merge remote-tracking branch 'origin/elf' into elf
an-owl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure about the value-add of this. It feels like a misuse of
From- could you please add a motivation to the commit?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is that
ElfSectionTagis effectivelySo it would be nice to implement
AsRefso it can be passed to functions takingimpl AsRef<SectionHeaderTable>. But this causes a use-after-free because thisSectionHeaderTable::new()does not return a reference.