Following the lessons learned on supporting PE files, this PR is refactoring the ELF loader to make it more solid and to support full binary roundtrip with ELF binaries.
This is a breaking change, so it will require a bump to 2.0
List of tasks to finish before merging:
[x] Update the tests to use Verify instead of relying on readelf
[x] Add check for ELF binary roundtrip equality
[x] Re-add similar methods ElfFile.AddSection (or ElfFile.AddContent maybe, let's see)
[x] Check memory usage and see what can be improved (some stuffs are now using class instead of struct, but it might be better to stick to struct)
Following the lessons learned on supporting PE files, this PR is refactoring the ELF loader to make it more solid and to support full binary roundtrip with ELF binaries.
This is a breaking change, so it will require a bump to 2.0
List of tasks to finish before merging:
readelf
ElfFile.AddSection
(orElfFile.AddContent
maybe, let's see)