OpenASIP
2.0
|
#include <TPEFRelocSectionWriter.hh>
Protected Member Functions | |
TPEFRelocSectionWriter () | |
virtual | ~TPEFRelocSectionWriter () |
virtual Section::SectionType | type () const |
virtual void | actualWriteData (BinaryStream &stream, const Section *section) const |
virtual Word | elementSize (const Section *section) const |
virtual void | writeInfo (BinaryStream &stream, const Section *sect) const |
Protected Member Functions inherited from TPEF::TPEFSectionWriter | |
TPEFSectionWriter () | |
virtual | ~TPEFSectionWriter () |
virtual const BinaryWriter & | parent () const |
virtual void | actualWriteHeader (BinaryStream &stream, const Section *sect) const |
virtual void | createKeys (const Section *sect) const |
virtual void | writeSize (BinaryStream &stream, const Section *sect) const |
virtual SectionId | getSectionId () const |
Protected Member Functions inherited from TPEF::SectionWriter | |
SectionWriter () | |
virtual | ~SectionWriter () |
virtual void | finalize (BinaryStream &stream, Section *section) const |
Private Member Functions | |
TPEFRelocSectionWriter (const TPEFRelocSectionWriter &) | |
Copying not allowed. More... | |
TPEFRelocSectionWriter | operator= (const TPEFRelocSectionWriter &) |
Assignment not allowed. More... | |
Static Private Attributes | |
static const TPEFRelocSectionWriter | instance_ |
An unique instance of class. More... | |
static const Word | elementSize_ = 12 |
The fixed size of reloc element. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from TPEF::SectionWriter | |
static void | writeHeader (BinaryStream &stream, const Section *sect, const BinaryWriter *writer) |
static void | writeData (BinaryStream &stream, const Section *sect, const BinaryWriter *writer) |
static void | finalizeBinary (BinaryStream &stream, const Binary *binaryToFinalize, const BinaryWriter *writer) |
Static Protected Member Functions inherited from TPEF::SectionWriter | |
static void | registerSectionWriter (const SectionWriter *sWriter) |
static SectionId | getUniqueSectionId () |
Writes TPEF relocation section to stream.
Definition at line 47 of file TPEFRelocSectionWriter.hh.
|
protected |
Construction.
Registers itself to SectionWriter.
Definition at line 69 of file TPEFRelocSectionWriter.cc.
References TPEF::SectionWriter::registerSectionWriter().
|
protectedvirtual |
|
private |
Copying not allowed.
|
protectedvirtual |
Writes relocation section in to stream.
stream | The stream where to write. |
section | The section to be written. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 96 of file TPEFRelocSectionWriter.cc.
References TPEF::ReferenceManager::SafePointer::addObjectReference(), TPEF::RelocElement::aSpace(), assert, TPEF::RelocElement::bitOffset(), TPEF::RelocElement::chunked(), TPEF::Section::element(), TPEF::Section::elementCount(), TPEF::RelocElement::location(), TPEF::ValueReplacer::resolve(), TPEF::SectionSizeReplacer::setSize(), TPEF::RelocElement::size(), TPEF::TPEFHeaders::STF_CHUNK, TPEF::RelocElement::symbol(), TPEF::RelocElement::type(), TPEF::BinaryStream::writeByte(), and TPEF::BinaryStream::writePosition().
|
protectedvirtual |
Returns size of element.
section | Section that is written. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 169 of file TPEFRelocSectionWriter.cc.
References elementSize_.
|
private |
Assignment not allowed.
|
protectedvirtual |
Returns the type of the section this writer can write.
Implements TPEF::TPEFSectionWriter.
Definition at line 85 of file TPEFRelocSectionWriter.cc.
References TPEF::Section::ST_RELOC.
|
protectedvirtual |
Writes Info field of section header.
stream | The stream where to write. |
sect | Section to write. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 180 of file TPEFRelocSectionWriter.cc.
References TPEF::ValueReplacer::resolve(), and TPEF::BinaryStream::writeHalfWord().
|
staticprivate |
The fixed size of reloc element.
Definition at line 71 of file TPEFRelocSectionWriter.hh.
Referenced by elementSize().
|
staticprivate |
An unique instance of class.
Definition at line 69 of file TPEFRelocSectionWriter.hh.