LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
LIEF::ELF::Builder Class Reference

Class which takes an ELF::Binary object and reconstructs a valid binary. More...

#include <Builder.hpp>

Classes

struct  config_t
 Configuration options to tweak the building process. More...
 

Public Member Functions

 Builder (Binary &binary)
 
void build ()
 Perform the build of the provided ELF binary.
 
Builderset_config (config_t conf)
 Tweak the ELF builder with the provided config parameter.
 
config_tconfig ()
 
const std::vector< uint8_t > & get_build ()
 Return the built ELF binary as a byte vector.
 
void write (const std::string &filename) const
 Write the built ELF binary in the filename given in parameter.
 
void write (std::ostream &os) const
 Write the built ELF binary in the stream os given in parameter.
 

Detailed Description

Class which takes an ELF::Binary object and reconstructs a valid binary.

This interface assumes that the layout of input ELF binary is correct (i.e. the binary can run).


The documentation for this class was generated from the following file: