MCPcopy Create free account
hub / github.com/Kitware/CMake / LoadSectionHeader

Method LoadSectionHeader

Source/cmELF.cxx:375–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

cmELFInternalImplMethod · 0.95

Calls 2

ReadMethod · 0.95
SetErrorMessageMethod · 0.45

Tested by

no test coverage detected