| 519 | |
| 520 | template <class Types> |
| 521 | cmELF::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 | |
| 539 | template <class Types> |
| 540 | std::vector<char> cmELFInternalImpl<Types>::EncodeDynamicEntries( |
no test coverage detected