Skip to content

Conversation

batuzovk
Copy link
Contributor

COFF files are used as an intermediate object file format by compilers (.obj/.o). COFF shares a lot with PE format. The biggest differences are relocations and lack of PE headers and data directories.

COFF files are used as an intermediate object file format
by compilers (.obj/.o). COFF shares a lot with PE format.
The biggest differenes are relocation format and lack of
PE headers and data directories.
@batuzovk batuzovk requested a review from woodruffw as a code owner March 14, 2025 13:12
@batuzovk
Copy link
Contributor Author

Since PE contains COFF as its part most of what's needed for COFF parsing is already present in pe-parse. The only missing part was support for COFF relocations, which isn't hard to implement.

Presenting COFF as parsed_pe object to the users is rather convenient. They can call the correct parse function depending on the file type, and then handle everything uniformly (e.g. I modified dump-pe to support both PE and raw COFF).

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