OpenASIP
2.0
|
#include <SectionSymElement.hh>
Public Member Functions | |
SectionSymElement () | |
virtual | ~SectionSymElement () |
virtual SymbolType | type () const |
Word | value () const |
void | setValue (Word aValue) |
Word | size () const |
void | setSize (Word aSize) |
Public Member Functions inherited from TPEF::SymbolElement | |
SymbolElement () | |
virtual | ~SymbolElement () |
bool | absolute () const |
void | setAbsolute (bool anAbsoluteness) |
SymbolBinding | binding () const |
void | setBinding (SymbolBinding aBinding) |
Chunk * | name () const |
void | setName (Chunk *aName) |
void | setName (const ReferenceManager::SafePointer *aName) |
Section * | section () const |
void | setSection (Section *aSect) |
void | setSection (const ReferenceManager::SafePointer *aSect) |
Public Member Functions inherited from TPEF::SectionElement | |
virtual | ~SectionElement () |
Public Member Functions inherited from TPEF::SafePointable | |
virtual | ~SafePointable () |
Private Attributes | |
Word | value_ |
Value of the symbol. More... | |
Word | size_ |
Size of referred object in MAUs. More... | |
Additional Inherited Members | |
Public Types inherited from TPEF::SymbolElement | |
enum | SymbolBinding { STB_LOCAL = 0x0, STB_GLOBAL = 0x1, STB_WEAK = 0x2 } |
Binding types of symbol. More... | |
enum | SymbolType { STT_NOTYPE = 0x0, STT_DATA = 0x1, STT_CODE = 0x2, STT_SECTION = 0x3, STT_FILE = 0x4, STT_PROCEDURE = 0x5 } |
Type of symbol element. More... | |
Protected Member Functions inherited from TPEF::SectionElement | |
SectionElement () | |
Protected Member Functions inherited from TPEF::SafePointable | |
SafePointable () | |
Section symbol element.
Definition at line 44 of file SectionSymElement.hh.
TPEF::SectionSymElement::SectionSymElement | ( | ) |
Constructor.
Definition at line 41 of file SectionSymElement.cc.
|
virtual |
void TPEF::SectionSymElement::setSize | ( | Word | aSize | ) |
Sets size of referred object in MAUs.
aSize | of the referred object in MAUs. |
Definition at line 102 of file SectionSymElement.cc.
References size_.
void TPEF::SectionSymElement::setValue | ( | Word | aValue | ) |
Sets value of the element.
This might be for example relocation information.
aValue | Value of the element. |
Definition at line 82 of file SectionSymElement.cc.
References value_.
Word TPEF::SectionSymElement::size | ( | ) | const |
Returns size of the referred object in MAUs.
Definition at line 92 of file SectionSymElement.cc.
References size_.
Referenced by TPEF::TPEFSymbolSectionWriter::writeValueAndSize().
|
virtual |
Returns type of the element.
Implements TPEF::SymbolElement.
Definition at line 58 of file SectionSymElement.cc.
References TPEF::SymbolElement::STT_SECTION.
Word TPEF::SectionSymElement::value | ( | ) | const |
Returns value of the element.
This might be for example relocation information.
Definition at line 70 of file SectionSymElement.cc.
References value_.
Referenced by TPEF::TPEFSymbolSectionWriter::writeValueAndSize().
|
private |
Size of referred object in MAUs.
Definition at line 61 of file SectionSymElement.hh.
|
private |
Value of the symbol.
Definition at line 59 of file SectionSymElement.hh.
Referenced by setValue(), and value().