CLRX  1
An unofficial OpenCL extensions designed for Radeon GPUs
Public Member Functions | Static Public Member Functions | List of all members
CLRX::ElfBinaryGenTemplate< Types > Class Template Reference

ELF binary generator. More...

#include <ElfBinaries.h>

Public Member Functions

 ElfBinaryGenTemplate (const ElfHeaderTemplate< Types > &header, bool addNullSym=true, bool addNullDynSym=true, bool addNullSection=true, cxuint addrCountingFromRegion=0)
 construcrtor More...
 
void setHeader (const ElfHeaderTemplate< Types > &header)
 set elf header
 
void addRegion (const ElfRegionTemplate< Types > &region)
 add new region (section, user region or shdr/phdr table
 
void addProgramHeader (const ElfProgramHeaderTemplate< Types > &progHeader)
 add new program header
 
void clearSymbols ()
 clear symbols
 
void clearDynSymbols ()
 clear dynamic symbols
 
void addSymbol (const ElfSymbolTemplate< Types > &symbol)
 add symbol
 
void addDynSymbol (const ElfSymbolTemplate< Types > &symbol)
 add dynamic symbol
 
void addNote (const ElfNote &note)
 add note
 
void addDynamic (int32_t dynamicTag)
 add dynamic
 
void addDynamics (size_t dynamicsNum, const int32_t *dynTags)
 add dynamic
 
uint64_t countSize ()
 count size of binary
 
Types::Word getRegionOffset (cxuint i) const
 
void generate (FastOutputBuffer &fob)
 generate binary
 
void generate (std::ostream &os)
 generate binary
 
template<>
uint32_t getRelInfo (size_t symbolIndex, uint32_t rtype)
 
template<>
uint64_t getRelInfo (size_t symbolIndex, uint32_t rtype)
 

Static Public Member Functions

static Types::Word getRelInfo (size_t symbolIndex, uint32_t rtype)
 

Detailed Description

template<typename Types>
class CLRX::ElfBinaryGenTemplate< Types >

ELF binary generator.

Constructor & Destructor Documentation

template<typename Types >
CLRX::ElfBinaryGenTemplate< Types >::ElfBinaryGenTemplate ( const ElfHeaderTemplate< Types > &  header,
bool  addNullSym = true,
bool  addNullDynSym = true,
bool  addNullSection = true,
cxuint  addrCountingFromRegion = 0 
)
explicit

construcrtor

Parameters
headerelf header template
addNullSymif true then add null symbol to symbol table
addNullDynSymif true then add null dynsymbol to dynsymbol table
addNullSectionif true then add null section to section table
addrCountingFromRegionbegins counting address from region with that index

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