ELFIO is a header-only C++ library intended for reading and generating files in the ELF binary format
This library is a breeze to use. I implemented a self-integrity check of an executable within one day, for a cross compiled module. (different endian-ness), The document shows exactly how to use this library. This small library is surprisingly powerful, and documented well.