RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ELF::ELFFormat::DynamicSection Class Reference
Inheritance diagram for ELF::ELFFormat::DynamicSection:
ELF::ELFFormat::SectionContents Linker::Contents

Public Member Functions

 DynamicSection (size_t wordbytes, offset_t entsize)
 
offset_t ImageSize () const override
 Retrieves the offset of the byte after the last one belonging to this format from the first one.
 
offset_t WriteFile (const std::shared_ptr< Linker::Writer > &wr) const override
 Writes data of non-zero filled sections.
 
void Dump (Dumper::Dumper &dump, const ELFFormat &fmt, unsigned index) const override
 
- Public Member Functions inherited from ELF::ELFFormat::SectionContents
virtual void AddDumperFields (std::unique_ptr< Dumper::Region > &region, Dumper::Dumper &dump, const ELFFormat &fmt, unsigned index) const
 
- Public Member Functions inherited from Linker::Contents
virtual std::shared_ptr< const Image > AsImage () const
 Retrieves a randomly accessible image.
 
std::shared_ptr< Image > AsImage ()
 Retrieves a randomly accessible image.
 

Public Attributes

size_t wordbytes
 
offset_t entsize
 
std::vector< DynamicObject > dynamic
 

Member Function Documentation

◆ Dump()

void ELFFormat::DynamicSection::Dump ( Dumper::Dumper &  dump,
const ELFFormat &  fmt,
unsigned  index 
) const
overridevirtual

Reimplemented from ELF::ELFFormat::SectionContents.

◆ ImageSize()

offset_t ELFFormat::DynamicSection::ImageSize ( ) const
overridevirtual

Retrieves the offset of the byte after the last one belonging to this format from the first one.

Returns
The size of the image, or offset_t(-1) if it cannot be determined before writing to the file

Implements Linker::Contents.

◆ WriteFile()

offset_t ELFFormat::DynamicSection::WriteFile ( const std::shared_ptr< Linker::Writer > &  wr) const
overridevirtual

Writes data of non-zero filled sections.

Implements Linker::Contents.


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