retdec
Private Attributes | List of all members
retdec::fileformat::ElfSymbol Class Reference

#include <elf_symbol.h>

Inheritance diagram for retdec::fileformat::ElfSymbol:
Inheritance graph
[legend]
Collaboration diagram for retdec::fileformat::ElfSymbol:
Collaboration graph
[legend]

Public Member Functions

Getters
unsigned long long getElfType () const
 
unsigned long long getElfBind () const
 
unsigned long long getElfOther () const
 
Setters

@]

void setElfType (unsigned long long symbolElfType)
 
void setElfBind (unsigned long long symbolElfBind)
 
void setElfOther (unsigned long long symbolElfOther)
 
- Public Member Functions inherited from retdec::fileformat::Symbol
bool isUndefined () const
 
bool isPrivate () const
 
bool isPublic () const
 
bool isWeak () const
 
bool isExtern () const
 
bool isAbsolute () const
 
bool isCommon () const
 
bool isUnknown () const
 
bool isFunction () const
 
bool isObject () const
 
bool isFile () const
 
bool isThumbSymbol () const
 
bool isEven () const
 
bool isOdd () const
 
bool hasEmptyName () const
 
const std::string & getName () const
 
std::string getNormalizedName () const
 
std::string getOriginalName () const
 
Symbol::Type getType () const
 
Symbol::UsageType getUsageType () const
 
unsigned long long getIndex () const
 
bool getAddress (unsigned long long &virtualAddress) const
 
bool getRealAddress (unsigned long long &virtualAddress) const
 
bool getSize (unsigned long long &symbolSize) const
 
bool getLinkToSection (unsigned long long &sectionIndex) const
 
void setName (const std::string &symbolName)
 
void setOriginalName (const std::string &symbolOriginalName)
 
void setType (Symbol::Type symbolType)
 
void setUsageType (Symbol::UsageType symbolUsageType)
 
void setIndex (unsigned long long symbolIndex)
 
void setAddress (unsigned long long symbolAddress)
 
void setSize (unsigned long long symbolSize)
 
void setLinkToSection (unsigned long long sectionIndex)
 
void setIsThumbSymbol (bool b)
 
void invalidateAddress ()
 
void invalidateSize ()
 
void invalidateLinkToSection ()
 

Private Attributes

unsigned long long elfType = 0
 ELF symbol type. More...
 
unsigned long long elfBind = 0
 ELF symbol bind type. More...
 
unsigned long long elfOther = 0
 ELF symbol other data. More...
 

Additional Inherited Members

- Public Types inherited from retdec::fileformat::Symbol
enum class  Type {
  UNDEFINED_SYM , PRIVATE , PUBLIC , WEAK ,
  EXTERN , ABSOLUTE_SYM , COMMON
}
 
enum class  UsageType { UNKNOWN , FUNCTION , OBJECT , FILE }
 

Detailed Description

Class for one ELF symbol

Member Function Documentation

◆ getElfBind()

unsigned long long retdec::fileformat::ElfSymbol::getElfBind ( ) const

Returns the ELF symbol bind type.

Returns
ELF symbol bind type.

◆ getElfOther()

unsigned long long retdec::fileformat::ElfSymbol::getElfOther ( ) const

Returns the ELF symbol other data.

Returns
ELF symbol other data.

◆ getElfType()

unsigned long long retdec::fileformat::ElfSymbol::getElfType ( ) const

Returns the ELF symbol type.

Returns
ELF symbol type.

◆ setElfBind()

void retdec::fileformat::ElfSymbol::setElfBind ( unsigned long long  symbolElfBind)

Sets the ELF symbol bind type.

Parameters
symbolElfBindELF symbol bind type.

◆ setElfOther()

void retdec::fileformat::ElfSymbol::setElfOther ( unsigned long long  symbolElfOther)

Sets the ELF symbol other data.

Parameters
symbolElfOtherELF symbol other data.

◆ setElfType()

void retdec::fileformat::ElfSymbol::setElfType ( unsigned long long  symbolElfType)

Sets the ELF symbol type.

Parameters
symbolElfTypeELF symbol type.

Member Data Documentation

◆ elfBind

unsigned long long retdec::fileformat::ElfSymbol::elfBind = 0
private

ELF symbol bind type.

◆ elfOther

unsigned long long retdec::fileformat::ElfSymbol::elfOther = 0
private

ELF symbol other data.

◆ elfType

unsigned long long retdec::fileformat::ElfSymbol::elfType = 0
private

ELF symbol type.


The documentation for this class was generated from the following files: