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

Method GetDynamicEntryPosition

Source/cmELF.cxx:508–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506
507template <class Types>
508unsigned long cmELFInternalImpl<Types>::GetDynamicEntryPosition(int j)
509{
510 if (!this->LoadDynamicSection()) {
511 return 0;
512 }
513 if (j < 0 || j >= static_cast<int>(this->DynamicSectionEntries.size())) {
514 return 0;
515 }
516 ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex];
517 return sec.sh_offset + sec.sh_entsize * static_cast<unsigned long>(j);
518}
519
520template <class Types>
521cmELF::DynamicEntryList cmELFInternalImpl<Types>::GetDynamicEntries()

Callers 2

LLVMFuzzerTestOneInputFunction · 0.80
RemoveRPathELFFunction · 0.80

Calls 3

LoadDynamicSectionMethod · 0.95
ValidMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected