Skip to content

chromoblob/bin2coff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

bin2coff

Tool that creates Microsoft COFF object files out of binary files. Runs on Cygwin (may run on Linux - untested).

Build

Code has a GNU-ism, __attribute__((packed)). Builds on Cygwin with GCC. Program is single-file (bin2coff.c).

Usage

bin2coff FILENAME [ SYMBOL_PREFIX [ END_SYMBOL_PREFIX ] ]

Default value for SYMBOL_PREFIX is File_; default value for END_SYMBOL_PREFIX is FileEnd_.

The tool creates a Microsoft COFF object file with a single section consisting of full input file data. The section is non-executable and read-only. The tool adds two symbols pointing to beginning and end of data. It appends input file basename to SYMBOL_PREFIX and END_SYMBOL_PREFIX to make names for symbols pointing to beginning and end of data, respectively. The section is named after the input file basename.

The object file has undefined machine type field (so e. g. objdump won't recognize it).

License

0-clause-BSD-like; see LICENSE.

Author

chromoblob

© 2026

About

Tool that creates Microsoft COFF object files out of binary files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages