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

Pick a better Mach-O parser #3

Open
woodruffw opened this issue Sep 23, 2022 · 1 comment
Open

Pick a better Mach-O parser #3

woodruffw opened this issue Sep 23, 2022 · 1 comment
Labels
C:core Core functionality C:object-formats Support for different binary object formats enhancement New feature or request

Comments

@woodruffw
Copy link
Member

Right now we vendor the Kaitai Struct project's generated Mach-O parser, which has some disadvantages:

  • It only supports "single-arch" Mach-Os, which means we have to do some nasty hacking to parse "fat" Mach-Os
  • It has a dependency on Kaitai's ASN.1 parser, for components we don't require. This means vendoring more code than strictly necessary
  • It introduces a runtime dependency on kaitaistruct for parsing support

We really only need to parse the symbol table(s), so we could probably get away with a tiny Mach-O parser that only does that.

@woodruffw woodruffw added enhancement New feature or request C:core Core functionality C:object-formats Support for different binary object formats labels Sep 23, 2022
@woodruffw
Copy link
Member Author

Kaitai has merged support for "fat" Mach-Os: kaitai-io/kaitai_struct_formats#515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:core Core functionality C:object-formats Support for different binary object formats enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant