CLRX
1
An unofficial OpenCL extensions designed for Radeon GPUs
|
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 > ®ion) |
add new region (section, user region or shdr/phdr table | |
void | addProgramHeader (const ElfProgramHeaderTemplate< Types > &progHeader) |
add new program header | |
void | addSymbol (const ElfSymbolTemplate< Types > &symbol) |
add symbol | |
void | addDynSymbol (const ElfSymbolTemplate< Types > &symbol) |
add dynamic symbol | |
void | addNote (const ElfNote ¬e) |
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 | |
void | generate (FastOutputBuffer &fob) |
generate binary | |
void | generate (std::ostream &os) |
generate binary | |
ELF binary generator.
|
explicit |
construcrtor
header | elf header template |
addNullSym | if true then add null symbol to symbol table |
addNullDynSym | if true then add null dynsymbol to dynsymbol table |
addNullSection | if true then add null section to section table |
addrCountingFromRegion | begins counting address from region with that index |