mirror of
https://github.com/serge1/ELFIO.git
synced 2025-02-06 21:39:50 +00:00
Mario Werner
1676247836
fix alignment of segments during saving -> copied elfs are working
The old implementation aligned the segment start. However, the intended behaviour is to align the offset and the vaddr (p_vaddr % p_align == p_offset % p_align). This is required for the loader which can then operate on memory pages.
ELFIO is a header-only C++ library intended for reading and generating files in the ELF binary format. It is used as a standalone library - it is not dependant on any other product or project. Adhering to ISO C++, it compiles on a wide variety of architectures and compilers.
Description
ELFIO - ELF (Executable and Linkable Format) reader and producer implemented as a header only C++ library
c-plus-pluscpluspluscppcpp-librarycpp-programmingcpp-projectelfelf-binarieself-headerelf-loaderelf-parserelf64elfio
Readme
19 MiB
Languages
C++
98.1%
CMake
1.7%
Assembly
0.1%