MCPcopy Create free account
hub / github.com/QuasarApp/CQtDeployer / parseProgramHeader

Function parseProgramHeader

src/QtELFReader/src/elfreader.cpp:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static void parseProgramHeader(const uchar *s, ElfProgramHeader *sh, const ElfData &context)
95{
96 sh->type = getWord(s, context);
97 sh->offset = getOffset(s, context);
98 /* p_vaddr = */ getAddress(s, context);
99 /* p_paddr = */ getAddress(s, context);
100 sh->filesz = getWord(s, context);
101 sh->memsz = getWord(s, context);
102}
103
104class ElfMapper
105{

Callers 1

readItMethod · 0.85

Calls 3

getWordFunction · 0.85
getOffsetFunction · 0.85
getAddressFunction · 0.85

Tested by

no test coverage detected