retdec
|
#include <macho_symbol.h>
Public Member Functions | |
Setters | |
void | makeFunction (FileFormat *fileParser) |
void | setAllValues (const llvm::MachO::nlist &nList, const llvm::StringRef &strTable, unsigned index) |
void | setAllValues (const llvm::MachO::nlist_64 &nList, const llvm::StringRef &strTable, unsigned index) |
Interpretation methods | |
std::unique_ptr< Import > | getAsImport () const |
Export | getAsExport () const |
std::shared_ptr< Symbol > | getAsSymbol () const |
Private Member Functions | |
Auxiliary methods | |
Symbol::Type | getSymbolType () const |
Symbol::UsageType | getSymbolUsageType () const |
template<typename T > | |
void | setValues (const T &nList, const llvm::StringRef &strTable, unsigned index) |
Private Attributes | |
std::string | name |
Symbol name. More... | |
std::string | altName |
Alternative name for weak symbols. More... | |
unsigned long long | value |
Symbol value - various interpetation. More... | |
std::int16_t | description |
Symbol description and library ordinal. More... | |
std::uint8_t | section |
Section index. More... | |
std::uint8_t | type |
Type of symbol. More... | |
unsigned | index |
Index of symbol. More... | |
bool | isFunction = false |
true if symbol is function false otherwise More... | |
Class for one MachO symbol
Export retdec::fileformat::MachOSymbol::getAsExport | ( | ) | const |
Get MachOSymbol as Export type
std::unique_ptr< Import > retdec::fileformat::MachOSymbol::getAsImport | ( | ) | const |
Get MachOSymbol as Import type
std::shared_ptr< Symbol > retdec::fileformat::MachOSymbol::getAsSymbol | ( | ) | const |
Get MachOSymbol as Symbol type
|
private |
Get symbol type
|
private |
Get symbol usage type
void retdec::fileformat::MachOSymbol::makeFunction | ( | FileFormat * | fileParser | ) |
Makes symbol a function if conditions are met (call only after setAllValues)
fileParser | Pointer to FileFormat parser |
void retdec::fileformat::MachOSymbol::setAllValues | ( | const llvm::MachO::nlist & | nList, |
const llvm::StringRef & | strTable, | ||
unsigned | index | ||
) |
Set all values of MachOSymbol
nList | Source structure 32-bit |
strTable | Pointer to string table |
index | Index of symbol |
void retdec::fileformat::MachOSymbol::setAllValues | ( | const llvm::MachO::nlist_64 & | nList, |
const llvm::StringRef & | strTable, | ||
unsigned | index | ||
) |
Set all values of MachOSymbol
nList | Source structure 64-bit |
strTable | Pointer to string table |
index | Index of symbol |
|
private |
Set all values of MachOSymbol
nList | Source structure |
strTable | Pointer to string table |
index | Index of symbol |
|
private |
Alternative name for weak symbols.
|
private |
Symbol description and library ordinal.
|
private |
Index of symbol.
|
private |
true
if symbol is function false
otherwise
|
private |
Symbol name.
|
private |
Section index.
|
private |
Type of symbol.
|
private |
Symbol value - various interpetation.