google / google/bloaty

Direction for PE file support

Open
#220 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
5.5k
Forks
378
Avg merge
23h 54m
Merged PRs (30d)
6

Description

To add support for PE files there are a few different approaches that can be used:

- Import a submodule for [LIEF](https://github.com/lief-project/LIEF) (this also supports other files, maybe all parsers could leverage this?)
- Import a submodule for a parser like [pe-parse](https://github.com/trailofbits/pe-parse) which is more of an iterating parser, and specialized for PE files
- Grab some headers / classes from LLVM and write something along the lines of [COFFDump](https://github.com/llvm/llvm-project/blob/master/llvm/tools/llvm-objdump/COFFDump.cpp)
- Grab only the [PE headers](https://github.com/llvm/llvm-project/blob/master/llvm/include/llvm/BinaryFormat/COFF.h) from LLVM and write a complete custom parser
- Other (please specify)

What would be the preferred way of moving forward?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.