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

Method GetDynamicEntries

Source/cmELF.cxx:521–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519
520template <class Types>
521cmELF::DynamicEntryList cmELFInternalImpl<Types>::GetDynamicEntries()
522{
523 cmELF::DynamicEntryList result;
524
525 // Ensure entries have been read from file
526 if (!this->LoadDynamicSection()) {
527 return result;
528 }
529
530 // Copy into public array
531 result.reserve(this->DynamicSectionEntries.size());
532 for (ELF_Dyn& dyn : this->DynamicSectionEntries) {
533 result.emplace_back(dyn.d_tag, dyn.d_un.d_val);
534 }
535
536 return result;
537}
538
539template <class Types>
540std::vector<char> cmELFInternalImpl<Types>::EncodeDynamicEntries(

Callers 2

LLVMFuzzerTestOneInputFunction · 0.80
RemoveRPathELFFunction · 0.80

Calls 5

LoadDynamicSectionMethod · 0.95
ValidMethod · 0.95
reserveMethod · 0.80
emplace_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected