RTEMS Linker  0.0.1
RTEMS Tools Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rap::file Struct Reference

Public Types

enum  { rap_comp_buffer = 2 * 1024 }
 

Public Member Functions

 file (const std::string &name, bool warnings)
 
 ~file ()
 
void parse_header ()
 
void load ()
 
void expand ()
 
const std::string name () const
 
int symbols () const
 
void symbol (int index, uint32_t &data, uint32_t &name, uint32_t &value) const
 
const char * string (int index)
 

Public Attributes

std::string header
 
size_t rhdr_len
 
uint32_t rhdr_length
 
uint32_t rhdr_version
 
std::string rhdr_compression
 
uint32_t rhdr_checksum
 
off_t machine_rap_off
 
uint32_t machinetype
 
uint32_t datatype
 
uint32_t class_
 
off_t layout_rap_off
 
std::string init
 
uint32_t init_off
 
std::string fini
 
uint32_t fini_off
 
off_t strtab_rap_off
 
uint32_t strtab_size
 
uint8_t * strtab
 
off_t symtab_rap_off
 
uint32_t symtab_size
 
uint8_t * symtab
 
off_t relocs_rap_off
 
uint32_t relocs_size
 
section secs [rld::rap::rap_secs]
 

Detailed Description

A RAP file.

Member Enumeration Documentation

anonymous enum
Enumerator
rap_comp_buffer 

Constructor & Destructor Documentation

rap::file::file ( const std::string &  name,
bool  warnings 
)

Open a RAP file and read the header.

rap::file::~file ( )

Close the RAP file.

Member Function Documentation

void rap::file::expand ( )

Expand the image.

void rap::file::load ( )

Load the file.

const std::string rap::file::name ( ) const

The name.

void rap::file::parse_header ( )

Parse header.

const char * rap::file::string ( int  index)

Return the string from the string table.

void rap::file::symbol ( int  index,
uint32_t &  data,
uint32_t &  name,
uint32_t &  value 
) const

Return a symbol given an index.

int rap::file::symbols ( ) const

The number of symbols in the symbol table.

Member Data Documentation

uint32_t rap::file::class_
uint32_t rap::file::datatype
std::string rap::file::fini
uint32_t rap::file::fini_off
std::string rap::file::header
std::string rap::file::init
uint32_t rap::file::init_off
off_t rap::file::layout_rap_off
off_t rap::file::machine_rap_off
uint32_t rap::file::machinetype
off_t rap::file::relocs_rap_off
uint32_t rap::file::relocs_size
uint32_t rap::file::rhdr_checksum
std::string rap::file::rhdr_compression
size_t rap::file::rhdr_len
uint32_t rap::file::rhdr_length
uint32_t rap::file::rhdr_version
section rap::file::secs[rld::rap::rap_secs]
uint8_t* rap::file::strtab
off_t rap::file::strtab_rap_off
uint32_t rap::file::strtab_size
uint8_t* rap::file::symtab
off_t rap::file::symtab_rap_off
uint32_t rap::file::symtab_size

The documentation for this struct was generated from the following file: