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

New ELF parser #290

Closed
wants to merge 1 commit into from
Closed

New ELF parser #290

wants to merge 1 commit into from

Conversation

Lichtso
Copy link

@Lichtso Lichtso commented Mar 23, 2022

Addressing solana-labs/solana#23620

Design goals

  • No dependencies
  • No panic sources such as: Direct array access, unwrap, assert
  • Explicit bounds checks, overlap checks, arithmetic checks
  • Strict numeric limits on string lengths, number of sections etc.
  • Avoid memory allocation, using references or pointers instead
  • Minimal parser state, using mem::transmute instead

Specification

https://refspecs.linuxfoundation.org/elf/gabi4+/

@Lichtso Lichtso force-pushed the feature/simple_elf_parser branch 2 times, most recently from c9ac523 to b60a3dc Compare March 25, 2022 16:36
@Lichtso Lichtso force-pushed the feature/simple_elf_parser branch 5 times, most recently from 7417291 to 5c0c5e8 Compare April 28, 2022 13:37
@Lichtso Lichtso force-pushed the feature/simple_elf_parser branch from 5c0c5e8 to 851edef Compare May 10, 2022 13:05
@Lichtso Lichtso force-pushed the feature/simple_elf_parser branch from 851edef to e48e347 Compare May 18, 2022 16:00
@Lichtso
Copy link
Author

Lichtso commented Jun 21, 2022

Closing this PR in favor of #348.

@Lichtso Lichtso closed this Jun 21, 2022
@Lichtso Lichtso deleted the feature/simple_elf_parser branch September 26, 2022 09:16
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