MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / parseProgramHeaders

Method parseProgramHeaders

src/symbols_linux.cpp:336–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336void ElfParser::parseProgramHeaders(CodeCache* cc, const char* base, const char* end, bool relocate_dyn) {
337 ElfParser elf(cc, base, base, NULL, relocate_dyn);
338 if (elf.validHeader() && base + elf._header->e_phoff < end) {
339 cc->setTextBase(base);
340 elf.calcVirtualLoadAddress();
341 elf.parseDynamicSection();
342 elf.parseDwarfInfo();
343 }
344}
345
346void ElfParser::calcVirtualLoadAddress() {
347 // Find a difference between the virtual load address (often zero) and the actual DSO base

Callers

nothing calls this directly

Calls 5

validHeaderMethod · 0.80
setTextBaseMethod · 0.80
parseDynamicSectionMethod · 0.80
parseDwarfInfoMethod · 0.80

Tested by

no test coverage detected