meta data about a relocation for a symbol
More...
#include <reloc.hpp>
meta data about a relocation for a symbol
Definition at line 41 of file reloc.hpp.
◆ reloc_t()
theo::recomp::reloc_t::reloc_t |
( |
std::uint32_t |
offset, |
|
|
std::size_t |
hash, |
|
|
const std::string && |
sym_name |
|
) |
| |
|
inlineexplicit |
explicit constructor for this class.
- Parameters
-
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. |
Definition at line 52 of file reloc.hpp.
◆ add_transform()
adds a transformation to be applied to the relocation prior to writing it into the symbol.
- Parameters
-
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.
◆ get_transforms()
gets the vector of transformation.
- Returns
- returns the vector of transformations.
Definition at line 101 of file reloc.hpp.
◆ hash()
std::size_t theo::recomp::reloc_t::hash |
( |
| ) |
|
|
inline |
returns the hash of the relocation symbol.
- Returns
- hash of the relocation symbol
Definition at line 61 of file reloc.hpp.
◆ name()
std::string theo::recomp::reloc_t::name |
( |
| ) |
|
|
inline |
returns the name of the relocation symbol.
- Returns
- returns the name of the relocation symbol.
Definition at line 67 of file reloc.hpp.
◆ offset() [1/2]
std::uint32_t theo::recomp::reloc_t::offset |
( |
| ) |
|
|
inline |
returns the offset into the symbol to which the relocation will be applied. the offset is in bytes. zero based.
- Returns
- 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.
◆ offset() [2/2]
void theo::recomp::reloc_t::offset |
( |
std::uint32_t |
offset | ) |
|
|
inline |
sets the offset to which the relocation gets applied too.
- Parameters
-
offset | offset to which the relocation gets applied too. |
Definition at line 82 of file reloc.hpp.
The documentation for this class was generated from the following file: