Theodosius v3.0
Jit linker, symbol mapper, and obfuscator
|
meta data about a relocation for a symbol More...
#include "reloc.hpp"
Public Member Functions | |
reloc_t (std::uint32_t offset, std::size_t hash, const std::string &&sym_name) | |
explicit constructor for this class. More... | |
std::size_t | hash () |
returns the hash of the relocation symbol. More... | |
std::string | name () |
returns the name of the relocation symbol. More... | |
std::uint32_t | offset () |
returns the offset into the symbol to which the relocation will be applied. the offset is in bytes. zero based. More... | |
void | offset (std::uint32_t offset) |
sets the offset to which the relocation gets applied too. More... | |
void | add_transform (std::pair< obf::transform::transform_t *, std::uint32_t > entry) |
adds a transformation to be applied to the relocation prior to writing it into the symbol. More... | |
std::vector< std::pair< obf::transform::transform_t *, std::uint32_t > > & | get_transforms () |
gets the vector of transformation. More... | |
|
inlineexplicit |
explicit constructor for this class.
offset | offset into the symbol data where the relocation is at. all relocations are assumed to be linear virtual addresses of the symbol. |
hash | hash of the symbol to which the relocation is of. |
sym_name | the name of the symbol to which the relocation is of. |
|
inline |
adds a transformation to be applied to the relocation prior to writing it into the symbol.
entry | a pair containing a lambda function that when executed transforms a relocation. the second value in the pair is a random value which is passed to the lambda. |
Definition at line 91 of file reloc.hpp.
Referenced by theo::obf::transform::generate().
|
inline |
gets the vector of transformation.
Definition at line 101 of file reloc.hpp.
Referenced by theo::obf::transform::generate(), and theo::recomp::recomp_t::resolve().
|
inline |
returns the hash of the relocation symbol.
Definition at line 61 of file reloc.hpp.
Referenced by theo::recomp::recomp_t::resolve().
|
inline |
returns the name of the relocation symbol.
Definition at line 67 of file reloc.hpp.
Referenced by theo::recomp::recomp_t::resolve().
|
inline |
returns the offset into the symbol to which the relocation will be applied. the offset is in bytes. zero based.
Definition at line 75 of file reloc.hpp.
Referenced by theo::recomp::recomp_t::resolve().
|
inline |