| 334 | } |
| 335 | |
| 336 | void 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 | |
| 346 | void ElfParser::calcVirtualLoadAddress() { |
| 347 | // Find a difference between the virtual load address (often zero) and the actual DSO base |
nothing calls this directly
no test coverage detected