54 const std::string&& sym_name)
55 : m_offset(
offset), m_hash(
hash), m_sym_name(sym_name) {}
61 std::size_t
hash() {
return m_hash; }
67 std::string
name() {
return m_sym_name; }
75 std::uint32_t
offset() {
return m_offset; }
92 std::pair<obf::transform::transform_t*, std::uint32_t> entry) {
93 m_transforms.push_back(entry);
100 std::vector<std::pair<obf::transform::transform_t*, std::uint32_t>>&
106 std::vector<std::pair<obf::transform::transform_t*, std::uint32_t>>
108 std::string m_sym_name;
110 std::uint32_t m_offset;
meta data about a relocation for a symbol
std::uint32_t offset()
returns the offset into the symbol to which the relocation will be applied. the offset is in bytes....
reloc_t(std::uint32_t offset, std::size_t hash, const std::string &&sym_name)
explicit constructor for this class.
void offset(std::uint32_t offset)
sets the offset to which the relocation gets applied too.
std::string name()
returns the name of the relocation symbol.
std::size_t hash()
returns the hash of the relocation symbol.
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.
std::vector< std::pair< obf::transform::transform_t *, std::uint32_t > > & get_transforms()
gets the vector of transformation.
this namespace encompasses all recomposition related code.