| 373 | } |
| 374 | |
| 375 | bool LoadSectionHeader(std::size_t i) |
| 376 | { |
| 377 | // Read the section header from the file. |
| 378 | this->Stream->seekg(this->ELFHeader.e_shoff + |
| 379 | this->ELFHeader.e_shentsize * i); |
| 380 | if (!this->Read(this->SectionHeaders[i])) { |
| 381 | this->SetErrorMessage("Failed to load section headers."); |
| 382 | return false; |
| 383 | } |
| 384 | |
| 385 | // Identify some important sections. |
| 386 | if (this->SectionHeaders[i].sh_type == SHT_DYNAMIC) { |
| 387 | this->DynamicSectionIndex = static_cast<int>(i); |
| 388 | } |
| 389 | return true; |
| 390 | } |
| 391 | |
| 392 | bool LoadDynamicSection(); |
| 393 |
no test coverage detected