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

AsmResolver.Elf #505

Open
ds5678 opened this issue Dec 9, 2023 · 2 comments
Open

AsmResolver.Elf #505

ds5678 opened this issue Dec 9, 2023 · 2 comments

Comments

@ds5678
Copy link
Contributor

ds5678 commented Dec 9, 2023

What would be involved in supporting ELF? From a brief look online, the specification appears to be fully opensource. If I wanted to work on this, how would you want me to go about that?

@Washi1337
Copy link
Owner

Washi1337 commented Dec 10, 2023

What's most important is that it should follow the same structure and API design as the other libraries related to the PE file format to keep things consistent and predictable.

In practical terms that would probably mean something in the lines of the following as a start:

  • An ElfFile class for low level ELF file access (i.e., basic headers and sections).
  • An ElfImage class for higher level representations (i.e., interpretation of sections).
  • Use the same model for "normal" and "serialized" versions of the classes, and use the lazy loading for non-trivial properties.
  • Ideally, an ElfFileBuilder class if feasible, however this can be difficult to make generically (which is why there also does not exist one yet for PE).

I would say we do not need IElfFile and IElfImage. The equivalent ones for PE will very likely be removed in the future (see #445).

@Avroke
Copy link
Sponsor

Avroke commented Jan 20, 2024

Hello, there's already ELFSharp, a good C# library for parsing ELF files.

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

No branches or pull requests

3 participants