retdec
|
#include <relocation_table.h>
Public Member Functions | |
Getters | |
std::size_t | getNumberOfStoredRelocations () const |
std::string | getNumberOfStoredRelocationsStr () const |
std::string | getNumberOfDeclaredRelocationsStr () const |
std::string | getTableName () const |
std::string | getAssociatedSymbolTableName () const |
std::string | getAppliesSectionName () const |
std::string | getAssociatedSymbolTableIndex () const |
std::string | getAppliesSectionIndex () const |
std::string | getRelocationSymbolName (std::size_t position) const |
std::string | getRelocationOffsetStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const |
std::string | getRelocationSymbolValueStr (std::size_t position) const |
std::string | getRelocationTypeStr (std::size_t position) const |
std::string | getRelocationAddendStr (std::size_t position) const |
std::string | getRelocationCalculatedValueStr (std::size_t position) const |
Setters | |
void | setTableName (std::string tableName) |
void | setAssociatedSymbolTableName (std::string symbolTableName) |
void | setAppliesSectionName (std::string sectionName) |
void | setAssociatedSymbolTableIndex (unsigned long long index) |
void | setAppliesSectionIndex (unsigned long long index) |
void | setNumberOfDeclaredRelocations (unsigned long long relocations) |
Other methods | |
void | addRelocation (Relocation &relocation) |
void | clearRelocations () |
Private Attributes | |
std::string | name |
name of relocation table More... | |
std::string | associatedSymbolTableName |
name of symbol table associated with relocation table More... | |
std::string | appliesSectionName |
name of section to which the relocation applies More... | |
unsigned long long | associatedSymbolTableIndex = std::numeric_limits<unsigned long long>::max() |
index of symbol table associated with relocation table More... | |
unsigned long long | appliesSectionIndex = std::numeric_limits<unsigned long long>::max() |
index of section to which the relocation applies More... | |
unsigned long long | declaredRelocations = std::numeric_limits<unsigned long long>::max() |
declared number of relocations in table More... | |
std::vector< Relocation > | table |
relocation entries More... | |
Class for relocation table
Value std::numeric_limits<unsigned long long>::max() mean unspecified value or error for numeric types. Methods with index parameters does not perform control of indexes.
void retdec::fileinfo::RelocationTable::addRelocation | ( | Relocation & | relocation | ) |
Add relocation
relocation | Relocation |
void retdec::fileinfo::RelocationTable::clearRelocations | ( | ) |
Delete all relocations from table
std::string retdec::fileinfo::RelocationTable::getAppliesSectionIndex | ( | ) | const |
Get index of section to which the relocation applies
std::string retdec::fileinfo::RelocationTable::getAppliesSectionName | ( | ) | const |
Get name of section to which the relocation applies
std::string retdec::fileinfo::RelocationTable::getAssociatedSymbolTableIndex | ( | ) | const |
Get index of symbol table (associated with relocation table)
std::string retdec::fileinfo::RelocationTable::getAssociatedSymbolTableName | ( | ) | const |
Get name of symbol table associated with relocation table
std::string retdec::fileinfo::RelocationTable::getNumberOfDeclaredRelocationsStr | ( | ) | const |
Get number of declared relocations in table
Returned value indicates the declared number of relocations stored in file table. This number may not be as large as result of method getNumberOfStoredRelocations().
std::size_t retdec::fileinfo::RelocationTable::getNumberOfStoredRelocations | ( | ) | const |
Get number of relocations in table
Returned value indicates the number of relocations stored in this instance. This number may not be as large as result of method getNumberOfDeclaredRelocations().
std::string retdec::fileinfo::RelocationTable::getNumberOfStoredRelocationsStr | ( | ) | const |
Get number of stored relocations in table
std::string retdec::fileinfo::RelocationTable::getRelocationAddendStr | ( | std::size_t | position | ) | const |
Get relocation addend
position | Position of relocation entry in table (0..x) |
std::string retdec::fileinfo::RelocationTable::getRelocationCalculatedValueStr | ( | std::size_t | position | ) | const |
Get relocation calculated value
position | Position of relocation entry in table (0..x) |
std::string retdec::fileinfo::RelocationTable::getRelocationOffsetStr | ( | std::size_t | position, |
std::ios_base &(*)(std::ios_base &) | format | ||
) | const |
Get relocation offset
position | Position of relocation entry in table (0..x) |
format | Format of resulting string (e.g. std::dec, std::hex) |
std::string retdec::fileinfo::RelocationTable::getRelocationSymbolName | ( | std::size_t | position | ) | const |
Get name of symbol associated with relocation
position | Position of relocation entry in table (0..x) |
std::string retdec::fileinfo::RelocationTable::getRelocationSymbolValueStr | ( | std::size_t | position | ) | const |
Get value of symbol associated with relocation
position | Position of relocation entry in table (0..x) |
std::string retdec::fileinfo::RelocationTable::getRelocationTypeStr | ( | std::size_t | position | ) | const |
Get type of relocation
position | Position of relocation entry in table (0..x) |
std::string retdec::fileinfo::RelocationTable::getTableName | ( | ) | const |
Get name of relocation table
void retdec::fileinfo::RelocationTable::setAppliesSectionIndex | ( | unsigned long long | index | ) |
Set index of section to which the relocation applies
index | Index of section to which the relocation applies |
void retdec::fileinfo::RelocationTable::setAppliesSectionName | ( | std::string | sectionName | ) |
Set name of section to which the relocation applies
sectionName | Name of section to which the relocation applies |
void retdec::fileinfo::RelocationTable::setAssociatedSymbolTableIndex | ( | unsigned long long | index | ) |
Set index of associated symbol table
index | Index of associated symbol table |
void retdec::fileinfo::RelocationTable::setAssociatedSymbolTableName | ( | std::string | symbolTableName | ) |
Set name of associated symbol table
symbolTableName | Name of associated symbol table |
void retdec::fileinfo::RelocationTable::setNumberOfDeclaredRelocations | ( | unsigned long long | relocations | ) |
Set declared number of relocations in table
relocations | Declared number of relocations in table |
void retdec::fileinfo::RelocationTable::setTableName | ( | std::string | tableName | ) |
Set name of relocation table
tableName | Name of relocation table |
|
private |
index of section to which the relocation applies
|
private |
name of section to which the relocation applies
|
private |
index of symbol table associated with relocation table
|
private |
name of symbol table associated with relocation table
|
private |
declared number of relocations in table
|
private |
name of relocation table
|
private |
relocation entries