|
FlatImage
A configurable Linux containerization system
|
ELF binary manipulation and reserved space management. More...
Functions | |
| Value< void > | copy_binary (fs::path const &path_file_input, fs::path const &path_file_output, std::pair< uint64_t, uint64_t > section) |
| Copies the binary data between [offset.first, offset.second] from path_file_input to path_file_output. | |
| Value< uint64_t > | skip_elf_header (fs::path const &path_file_elf, uint64_t offset=0) |
| Skips the elf header starting from 'offset' and returns the offset to the first byte afterwards. | |
ELF binary manipulation and reserved space management.
Provides utilities for reading and manipulating ELF binaries, including ELF header parsing, binary extraction at specific offsets, and reserved space read/write operations. Essential for FlatImage's embedded configuration storage and binary relocation functionality.
|
inlinenodiscard |
Copies the binary data between [offset.first, offset.second] from path_file_input to path_file_output.
| path_file_input | The source file where to read the bytes from |
| path_file_output | The target file where to write the bytes to |
| section | The section[start,end] The section to read from the input and write to the output |
Definition at line 52 of file elf.hpp.
|
inlinenodiscard |
Skips the elf header starting from 'offset' and returns the offset to the first byte afterwards.
| path_file_elf | Path to the respective elf file |
| offset | Offset where the elf section starts |
Definition at line 85 of file elf.hpp.