LLVM 22.0.0git
ELFYAML.h
Go to the documentation of this file.
1//===- ELFYAML.h - ELF YAMLIO implementation --------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8///
9/// \file
10/// This file declares classes for handling the YAML representation
11/// of ELF.
12///
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_OBJECTYAML_ELFYAML_H
16#define LLVM_OBJECTYAML_ELFYAML_H
17
18#include "llvm/ADT/StringRef.h"
24#include <cstdint>
25#include <memory>
26#include <optional>
27#include <vector>
28
29namespace llvm {
30namespace ELFYAML {
31
33std::string appendUniqueSuffix(StringRef Name, const Twine& Msg);
34
35// These types are invariant across 32/64-bit ELF, so for simplicity just
36// directly give them their exact sizes. We don't need to worry about
37// endianness because these are just the types in the YAMLIO structures,
38// and are appropriately converted to the necessary endianness when
39// reading/generating binary object files.
40// The naming of these types is intended to be ELF_PREFIX, where PREFIX is
41// the common prefix of the respective constants. E.g. ELF_EM corresponds
42// to the `e_machine` constants, like `EM_X86_64`.
43// In the future, these would probably be better suited by C++11 enum
44// class's with appropriate fixed underlying type.
51// Just use 64, since it can hold 32-bit values too.
53// Just use 64, since it can hold 32-bit values too.
59// Just use 64, since it can hold 32-bit values too.
65
70LLVM_YAML_STRONG_TYPEDEF(uint32_t, MIPS_AFL_FLAGS1)
72
74LLVM_YAML_STRONG_TYPEDEF(int64_t, YAMLIntUInt)
75
76template <class ELFT>
77unsigned getDefaultShEntSize(unsigned EMachine, ELF_SHT SecType,
78 StringRef SecName) {
79 if (EMachine == ELF::EM_MIPS && SecType == ELF::SHT_MIPS_ABIFLAGS)
81
82 switch (SecType) {
83 case ELF::SHT_SYMTAB:
84 case ELF::SHT_DYNSYM:
85 return sizeof(typename ELFT::Sym);
86 case ELF::SHT_GROUP:
87 return sizeof(typename ELFT::Word);
88 case ELF::SHT_REL:
89 return sizeof(typename ELFT::Rel);
90 case ELF::SHT_RELA:
91 return sizeof(typename ELFT::Rela);
92 case ELF::SHT_RELR:
93 return sizeof(typename ELFT::Relr);
95 return sizeof(typename ELFT::Dyn);
96 case ELF::SHT_HASH:
97 return sizeof(typename ELFT::Word);
99 return sizeof(typename ELFT::Word);
101 return sizeof(typename ELFT::Half);
104 default:
105 if (SecName == ".debug_str")
106 return 1;
107 return 0;
108 }
109}
110
111// For now, hardcode 64 bits everywhere that 32 or 64 would be needed
112// since 64-bit can hold 32-bit values too.
114 ELF_ELFCLASS Class;
115 ELF_ELFDATA Data;
116 ELF_ELFOSABI OSABI;
117 llvm::yaml::Hex8 ABIVersion;
118 ELF_ET Type;
119 std::optional<ELF_EM> Machine;
120 std::optional<ELF_EF> Flags;
121 llvm::yaml::Hex64 Entry;
122 std::optional<StringRef> SectionHeaderStringTable;
123
124 std::optional<llvm::yaml::Hex64> EPhOff;
125 std::optional<llvm::yaml::Hex16> EPhEntSize;
126 std::optional<llvm::yaml::Hex16> EPhNum;
127 std::optional<llvm::yaml::Hex16> EShEntSize;
128 std::optional<llvm::yaml::Hex64> EShOff;
129 std::optional<llvm::yaml::Hex16> EShNum;
130 std::optional<llvm::yaml::Hex16> EShStrNdx;
131};
132
136
137struct Symbol {
139 ELF_STT Type;
140 std::optional<StringRef> Section;
141 std::optional<ELF_SHN> Index;
142 ELF_STB Binding;
143 std::optional<llvm::yaml::Hex64> Value;
144 std::optional<llvm::yaml::Hex64> Size;
145 std::optional<uint8_t> Other;
146
147 std::optional<uint32_t> StName;
148};
149
153
155 ELF_DYNTAG Tag;
156 llvm::yaml::Hex64 Val;
157};
158
160 struct BBEntry {
162 llvm::yaml::Hex64 AddressOffset;
163 llvm::yaml::Hex64 Size;
164 llvm::yaml::Hex64 Metadata;
165 std::optional<std::vector<llvm::yaml::Hex64>> CallsiteEndOffsets;
166 std::optional<llvm::yaml::Hex64> Hash;
167 };
169 llvm::yaml::Hex16 Feature;
170
172 llvm::yaml::Hex64 BaseAddress;
173 std::optional<uint64_t> NumBlocks;
174 std::optional<std::vector<BBEntry>> BBEntries;
175 };
176
177 std::optional<uint64_t> NumBBRanges;
178 std::optional<std::vector<BBRangeEntry>> BBRanges;
179
180 llvm::yaml::Hex64 getFunctionAddress() const {
181 if (!BBRanges || BBRanges->empty())
182 return 0;
183 return BBRanges->front().BaseAddress;
184 }
185
186 // Returns if any BB entries have non-empty callsite offsets.
188 if (!BBRanges)
189 return false;
191 if (!BBR.BBEntries)
192 continue;
193 for (const ELFYAML::BBAddrMapEntry::BBEntry &BBE : *BBR.BBEntries)
194 if (BBE.CallsiteEndOffsets && !BBE.CallsiteEndOffsets->empty())
195 return true;
196 }
197 return false;
198 }
199};
200
202 struct PGOBBEntry {
205 llvm::yaml::Hex32 BrProb;
206 std::optional<uint32_t> PostLinkBrFreq;
207 };
208 std::optional<uint64_t> BBFreq;
209 std::optional<uint32_t> PostLinkBBFreq;
210 std::optional<std::vector<SuccessorEntry>> Successors;
211 };
212 std::optional<uint64_t> FuncEntryCount;
213 std::optional<std::vector<PGOBBEntry>> PGOBBEntries;
214};
215
217 llvm::yaml::Hex64 Address;
218 llvm::yaml::Hex64 Size;
219};
220
226
227struct Chunk {
256
259 std::optional<llvm::yaml::Hex64> Offset;
260
261 // Usually chunks are not created implicitly, but rather loaded from YAML.
262 // This flag is used to signal whether this is the case or not.
264
265 Chunk(ChunkKind K, bool Implicit) : Kind(K), IsImplicit(Implicit) {}
266 virtual ~Chunk();
267};
268
269struct Section : public Chunk {
270 ELF_SHT Type;
271 std::optional<ELF_SHF> Flags;
272 std::optional<llvm::yaml::Hex64> Address;
273 std::optional<StringRef> Link;
274 llvm::yaml::Hex64 AddressAlign;
275 std::optional<llvm::yaml::Hex64> EntSize;
276
277 std::optional<yaml::BinaryRef> Content;
278 std::optional<llvm::yaml::Hex64> Size;
279
280 // Holds the original section index.
282
284
285 static bool classof(const Chunk *S) {
287 }
288
289 // Some derived sections might have their own special entries. This method
290 // returns a vector of <entry name, is used> pairs. It is used for section
291 // validation.
292 virtual std::vector<std::pair<StringRef, bool>> getEntries() const {
293 return {};
294 };
295
296 // The following members are used to override section fields which is
297 // useful for creating invalid objects.
298
299 // This can be used to override the sh_addralign field.
300 std::optional<llvm::yaml::Hex64> ShAddrAlign;
301
302 // This can be used to override the offset stored in the sh_name field.
303 // It does not affect the name stored in the string table.
304 std::optional<llvm::yaml::Hex64> ShName;
305
306 // This can be used to override the sh_offset field. It does not place the
307 // section data at the offset specified.
308 std::optional<llvm::yaml::Hex64> ShOffset;
309
310 // This can be used to override the sh_size field. It does not affect the
311 // content written.
312 std::optional<llvm::yaml::Hex64> ShSize;
313
314 // This can be used to override the sh_flags field.
315 std::optional<llvm::yaml::Hex64> ShFlags;
316
317 // This can be used to override the sh_type field. It is useful when we
318 // want to use specific YAML keys for a section of a particular type to
319 // describe the content, but still want to have a different final type
320 // for the section.
321 std::optional<ELF_SHT> ShType;
322};
323
324// Fill is a block of data which is placed outside of sections. It is
325// not present in the sections header table, but it might affect the output file
326// size and program headers produced.
327struct Fill : Chunk {
328 std::optional<yaml::BinaryRef> Pattern;
329 llvm::yaml::Hex64 Size;
330
331 Fill() : Chunk(ChunkKind::Fill, /*Implicit=*/false) {}
332
333 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Fill; }
334};
335
339
340 static bool classof(const Chunk *S) {
342 }
343
344 std::optional<std::vector<SectionHeader>> Sections;
345 std::optional<std::vector<SectionHeader>> Excluded;
346 std::optional<bool> NoHeaders;
347
348 size_t getNumHeaders(size_t SectionsNum) const {
349 if (IsImplicit || isDefault())
350 return SectionsNum;
351 if (NoHeaders)
352 return (*NoHeaders) ? 0 : SectionsNum;
353 return (Sections ? Sections->size() : 0) + /*Null section*/ 1;
354 }
355
356 bool isDefault() const { return !Sections && !Excluded && !NoHeaders; }
357
358 static constexpr StringRef TypeStr = "SectionHeaderTable";
359};
360
362 std::optional<std::vector<BBAddrMapEntry>> Entries;
363 std::optional<std::vector<PGOAnalysisMapEntry>> PGOAnalyses;
364
366
367 std::vector<std::pair<StringRef, bool>> getEntries() const override {
368 return {{"Entries", Entries.has_value()}};
369 };
370
371 static bool classof(const Chunk *S) {
372 return S->Kind == ChunkKind::BBAddrMap;
373 }
374};
375
377 std::optional<std::vector<StackSizeEntry>> Entries;
378
380
381 std::vector<std::pair<StringRef, bool>> getEntries() const override {
382 return {{"Entries", Entries.has_value()}};
383 };
384
385 static bool classof(const Chunk *S) {
386 return S->Kind == ChunkKind::StackSizes;
387 }
388
390 return Name == ".stack_sizes";
391 }
392};
393
395 std::optional<std::vector<DynamicEntry>> Entries;
396
398
399 std::vector<std::pair<StringRef, bool>> getEntries() const override {
400 return {{"Entries", Entries.has_value()}};
401 };
402
403 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Dynamic; }
404};
405
407 std::optional<llvm::yaml::Hex64> Info;
408
410
411 static bool classof(const Chunk *S) {
412 return S->Kind == ChunkKind::RawContent;
413 }
414
415 // Is used when a content is read as an array of bytes.
416 std::optional<std::vector<uint8_t>> ContentBuf;
417};
418
421
422 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::NoBits; }
423};
424
426 std::optional<std::vector<ELFYAML::NoteEntry>> Notes;
427
429
430 std::vector<std::pair<StringRef, bool>> getEntries() const override {
431 return {{"Notes", Notes.has_value()}};
432 };
433
434 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Note; }
435};
436
438 std::optional<std::vector<uint32_t>> Bucket;
439 std::optional<std::vector<uint32_t>> Chain;
440
441 std::vector<std::pair<StringRef, bool>> getEntries() const override {
442 return {{"Bucket", Bucket.has_value()}, {"Chain", Chain.has_value()}};
443 };
444
445 // The following members are used to override section fields.
446 // This is useful for creating invalid objects.
447 std::optional<llvm::yaml::Hex64> NBucket;
448 std::optional<llvm::yaml::Hex64> NChain;
449
451
452 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Hash; }
453};
454
456 // The number of hash buckets.
457 // Not used when dumping the object, but can be used to override
458 // the real number of buckets when emiting an object from a YAML document.
459 std::optional<llvm::yaml::Hex32> NBuckets;
460
461 // Index of the first symbol in the dynamic symbol table
462 // included in the hash table.
463 llvm::yaml::Hex32 SymNdx;
464
465 // The number of words in the Bloom filter.
466 // Not used when dumping the object, but can be used to override the real
467 // number of words in the Bloom filter when emiting an object from a YAML
468 // document.
469 std::optional<llvm::yaml::Hex32> MaskWords;
470
471 // A shift constant used by the Bloom filter.
472 llvm::yaml::Hex32 Shift2;
473};
474
476 std::optional<GnuHashHeader> Header;
477 std::optional<std::vector<llvm::yaml::Hex64>> BloomFilter;
478 std::optional<std::vector<llvm::yaml::Hex32>> HashBuckets;
479 std::optional<std::vector<llvm::yaml::Hex32>> HashValues;
480
482
483 std::vector<std::pair<StringRef, bool>> getEntries() const override {
484 return {{"Header", Header.has_value()},
485 {"BloomFilter", BloomFilter.has_value()},
486 {"HashBuckets", HashBuckets.has_value()},
487 {"HashValues", HashValues.has_value()}};
488 };
489
490 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::GnuHash; }
491};
492
499
503 std::vector<VernauxEntry> AuxV;
504};
505
507 std::optional<std::vector<VerneedEntry>> VerneedV;
508 std::optional<llvm::yaml::Hex64> Info;
509
511
512 std::vector<std::pair<StringRef, bool>> getEntries() const override {
513 return {{"Dependencies", VerneedV.has_value()}};
514 };
515
516 static bool classof(const Chunk *S) {
517 return S->Kind == ChunkKind::Verneed;
518 }
519};
520
522 std::optional<std::vector<YAMLFlowString>> Symbols;
523
525
526 std::vector<std::pair<StringRef, bool>> getEntries() const override {
527 return {{"Symbols", Symbols.has_value()}};
528 };
529
530 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Addrsig; }
531};
532
537
539 std::optional<std::vector<LinkerOption>> Options;
540
542
543 std::vector<std::pair<StringRef, bool>> getEntries() const override {
544 return {{"Options", Options.has_value()}};
545 };
546
547 static bool classof(const Chunk *S) {
548 return S->Kind == ChunkKind::LinkerOptions;
549 }
550};
551
553 std::optional<std::vector<YAMLFlowString>> Libs;
554
556
557 std::vector<std::pair<StringRef, bool>> getEntries() const override {
558 return {{"Libraries", Libs.has_value()}};
559 };
560
561 static bool classof(const Chunk *S) {
563 }
564};
565
566// Represents the call graph profile section entry.
568 // The weight of the edge.
570};
571
573 std::optional<std::vector<CallGraphEntryWeight>> Entries;
574
576
577 std::vector<std::pair<StringRef, bool>> getEntries() const override {
578 return {{"Entries", Entries.has_value()}};
579 };
580
581 static bool classof(const Chunk *S) {
583 }
584};
585
587 std::optional<std::vector<uint16_t>> Entries;
588
590
591 std::vector<std::pair<StringRef, bool>> getEntries() const override {
592 return {{"Entries", Entries.has_value()}};
593 };
594
595 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Symver; }
596};
597
599 std::optional<uint16_t> Version;
600 std::optional<uint16_t> Flags;
601 std::optional<uint16_t> VersionNdx;
602 std::optional<uint32_t> Hash;
603 std::optional<uint16_t> VDAux;
604 std::vector<StringRef> VerNames;
605};
606
608 std::optional<std::vector<VerdefEntry>> Entries;
609 std::optional<llvm::yaml::Hex64> Info;
610
612
613 std::vector<std::pair<StringRef, bool>> getEntries() const override {
614 return {{"Entries", Entries.has_value()}};
615 };
616
617 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Verdef; }
618};
619
621 // Members of a group contain a flag and a list of section indices
622 // that are part of the group.
623 std::optional<std::vector<SectionOrType>> Members;
624 std::optional<StringRef> Signature; /* Info */
625
627
628 std::vector<std::pair<StringRef, bool>> getEntries() const override {
629 return {{"Members", Members.has_value()}};
630 };
631
632 static bool classof(const Chunk *S) { return S->Kind == ChunkKind::Group; }
633};
634
636 llvm::yaml::Hex64 Offset;
637 YAMLIntUInt Addend;
638 ELF_REL Type;
639 std::optional<StringRef> Symbol;
640};
641
643 std::optional<std::vector<Relocation>> Relocations;
645
647
648 std::vector<std::pair<StringRef, bool>> getEntries() const override {
649 return {{"Relocations", Relocations.has_value()}};
650 };
651
652 static bool classof(const Chunk *S) {
653 return S->Kind == ChunkKind::Relocation;
654 }
655};
656
658 std::optional<std::vector<llvm::yaml::Hex64>> Entries;
659
661
662 std::vector<std::pair<StringRef, bool>> getEntries() const override {
663 return {{"Entries", Entries.has_value()}};
664 };
665
666 static bool classof(const Chunk *S) {
667 return S->Kind == ChunkKind::Relr;
668 }
669};
670
672 std::optional<std::vector<uint32_t>> Entries;
673
675
676 std::vector<std::pair<StringRef, bool>> getEntries() const override {
677 return {{"Entries", Entries.has_value()}};
678 };
679
680 static bool classof(const Chunk *S) {
682 }
683};
684
686 llvm::yaml::Hex32 Offset;
687 llvm::yaml::Hex32 Value;
688};
689
691 std::optional<std::vector<ARMIndexTableEntry>> Entries;
692
694
695 std::vector<std::pair<StringRef, bool>> getEntries() const override {
696 return {{"Entries", Entries.has_value()}};
697 };
698
699 static bool classof(const Chunk *S) {
700 return S->Kind == ChunkKind::ARMIndexTable;
701 }
702};
703
704// Represents .MIPS.abiflags section
706 llvm::yaml::Hex16 Version;
707 MIPS_ISA ISALevel;
708 llvm::yaml::Hex8 ISARevision;
709 MIPS_AFL_REG GPRSize;
710 MIPS_AFL_REG CPR1Size;
711 MIPS_AFL_REG CPR2Size;
712 MIPS_ABI_FP FpABI;
713 MIPS_AFL_EXT ISAExtension;
714 MIPS_AFL_ASE ASEs;
715 MIPS_AFL_FLAGS1 Flags1;
716 llvm::yaml::Hex32 Flags2;
717
719
720 static bool classof(const Chunk *S) {
721 return S->Kind == ChunkKind::MipsABIFlags;
722 }
723};
724
726 ELF_PT Type;
727 ELF_PF Flags;
728 llvm::yaml::Hex64 VAddr;
729 llvm::yaml::Hex64 PAddr;
730 std::optional<llvm::yaml::Hex64> Align;
731 std::optional<llvm::yaml::Hex64> FileSize;
732 std::optional<llvm::yaml::Hex64> MemSize;
733 std::optional<llvm::yaml::Hex64> Offset;
734 std::optional<StringRef> FirstSec;
735 std::optional<StringRef> LastSec;
736
737 // This vector contains all chunks from [FirstSec, LastSec].
738 std::vector<Chunk *> Chunks;
739};
740
741struct Object {
743 std::vector<ProgramHeader> ProgramHeaders;
744
745 // An object might contain output section descriptions as well as
746 // custom data that does not belong to any section.
747 std::vector<std::unique_ptr<Chunk>> Chunks;
748
749 // Although in reality the symbols reside in a section, it is a lot
750 // cleaner and nicer if we read them from the YAML as a separate
751 // top-level key, which automatically ensures that invariants like there
752 // being a single SHT_SYMTAB section are upheld.
753 std::optional<std::vector<Symbol>> Symbols;
754 std::optional<std::vector<Symbol>> DynamicSymbols;
755 std::optional<DWARFYAML::Data> DWARF;
756
757 std::vector<Section *> getSections() {
758 std::vector<Section *> Ret;
759 for (const std::unique_ptr<Chunk> &Sec : Chunks)
760 if (auto S = dyn_cast<ELFYAML::Section>(Sec.get()))
761 Ret.push_back(S);
762 return Ret;
763 }
764
766 for (const std::unique_ptr<Chunk> &C : Chunks)
767 if (auto *S = dyn_cast<ELFYAML::SectionHeaderTable>(C.get()))
768 return *S;
769 llvm_unreachable("the section header table chunk must always be present");
770 }
771
772 ELF_ELFOSABI getOSAbi() const;
773 unsigned getMachine() const;
774};
775
777 const NoBitsSection &S);
778
779} // end namespace ELFYAML
780} // end namespace llvm
781
789 llvm::ELFYAML::PGOAnalysisMapEntry::PGOBBEntry::SuccessorEntry)
790LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::DynamicEntry)
791LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::LinkerOption)
792LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::CallGraphEntryWeight)
793LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::NoteEntry)
794LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::ProgramHeader)
795LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::SectionHeader)
796LLVM_YAML_IS_SEQUENCE_VECTOR(std::unique_ptr<llvm::ELFYAML::Chunk>)
797LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::Symbol)
798LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::VerdefEntry)
799LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::VernauxEntry)
800LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::VerneedEntry)
801LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::Relocation)
802LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::SectionOrType)
803LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::ELFYAML::ARMIndexTableEntry)
804
805namespace llvm {
806namespace yaml {
807
808template <> struct ScalarTraits<ELFYAML::YAMLIntUInt> {
809 static void output(const ELFYAML::YAMLIntUInt &Val, void *Ctx,
810 raw_ostream &Out);
811 static StringRef input(StringRef Scalar, void *Ctx,
812 ELFYAML::YAMLIntUInt &Val);
813 static QuotingType mustQuote(StringRef) { return QuotingType::None; }
814};
815
816template <>
817struct ScalarEnumerationTraits<ELFYAML::ELF_ET> {
818 static void enumeration(IO &IO, ELFYAML::ELF_ET &Value);
819};
820
821template <> struct ScalarEnumerationTraits<ELFYAML::ELF_PT> {
822 static void enumeration(IO &IO, ELFYAML::ELF_PT &Value);
823};
824
825template <> struct ScalarEnumerationTraits<ELFYAML::ELF_NT> {
826 static void enumeration(IO &IO, ELFYAML::ELF_NT &Value);
827};
828
829template <>
830struct ScalarEnumerationTraits<ELFYAML::ELF_EM> {
831 static void enumeration(IO &IO, ELFYAML::ELF_EM &Value);
832};
833
834template <>
835struct ScalarEnumerationTraits<ELFYAML::ELF_ELFCLASS> {
836 static void enumeration(IO &IO, ELFYAML::ELF_ELFCLASS &Value);
837};
838
839template <>
840struct ScalarEnumerationTraits<ELFYAML::ELF_ELFDATA> {
841 static void enumeration(IO &IO, ELFYAML::ELF_ELFDATA &Value);
842};
843
844template <>
845struct ScalarEnumerationTraits<ELFYAML::ELF_ELFOSABI> {
846 static void enumeration(IO &IO, ELFYAML::ELF_ELFOSABI &Value);
847};
848
849template <>
850struct ScalarBitSetTraits<ELFYAML::ELF_EF> {
851 static void bitset(IO &IO, ELFYAML::ELF_EF &Value);
852};
853
854template <> struct ScalarBitSetTraits<ELFYAML::ELF_PF> {
855 static void bitset(IO &IO, ELFYAML::ELF_PF &Value);
856};
857
858template <>
859struct ScalarEnumerationTraits<ELFYAML::ELF_SHT> {
860 static void enumeration(IO &IO, ELFYAML::ELF_SHT &Value);
861};
862
863template <>
864struct ScalarBitSetTraits<ELFYAML::ELF_SHF> {
865 static void bitset(IO &IO, ELFYAML::ELF_SHF &Value);
866};
867
868template <> struct ScalarEnumerationTraits<ELFYAML::ELF_SHN> {
869 static void enumeration(IO &IO, ELFYAML::ELF_SHN &Value);
870};
871
872template <> struct ScalarEnumerationTraits<ELFYAML::ELF_STB> {
873 static void enumeration(IO &IO, ELFYAML::ELF_STB &Value);
874};
875
876template <>
877struct ScalarEnumerationTraits<ELFYAML::ELF_STT> {
878 static void enumeration(IO &IO, ELFYAML::ELF_STT &Value);
879};
880
881template <>
882struct ScalarEnumerationTraits<ELFYAML::ELF_REL> {
883 static void enumeration(IO &IO, ELFYAML::ELF_REL &Value);
884};
885
886template <>
887struct ScalarEnumerationTraits<ELFYAML::ELF_DYNTAG> {
888 static void enumeration(IO &IO, ELFYAML::ELF_DYNTAG &Value);
889};
890
891template <>
892struct ScalarEnumerationTraits<ELFYAML::ELF_RSS> {
893 static void enumeration(IO &IO, ELFYAML::ELF_RSS &Value);
894};
895
896template <>
897struct ScalarEnumerationTraits<ELFYAML::MIPS_AFL_REG> {
898 static void enumeration(IO &IO, ELFYAML::MIPS_AFL_REG &Value);
899};
900
901template <>
902struct ScalarEnumerationTraits<ELFYAML::MIPS_ABI_FP> {
903 static void enumeration(IO &IO, ELFYAML::MIPS_ABI_FP &Value);
904};
905
906template <>
907struct ScalarEnumerationTraits<ELFYAML::MIPS_AFL_EXT> {
908 static void enumeration(IO &IO, ELFYAML::MIPS_AFL_EXT &Value);
909};
910
911template <>
912struct ScalarEnumerationTraits<ELFYAML::MIPS_ISA> {
913 static void enumeration(IO &IO, ELFYAML::MIPS_ISA &Value);
914};
915
916template <>
917struct ScalarBitSetTraits<ELFYAML::MIPS_AFL_ASE> {
918 static void bitset(IO &IO, ELFYAML::MIPS_AFL_ASE &Value);
919};
920
921template <>
922struct ScalarBitSetTraits<ELFYAML::MIPS_AFL_FLAGS1> {
923 static void bitset(IO &IO, ELFYAML::MIPS_AFL_FLAGS1 &Value);
924};
925
926template <>
927struct MappingTraits<ELFYAML::FileHeader> {
928 static void mapping(IO &IO, ELFYAML::FileHeader &FileHdr);
929};
930
931template <> struct MappingTraits<ELFYAML::SectionHeader> {
932 static void mapping(IO &IO, ELFYAML::SectionHeader &SHdr);
933};
934
935template <> struct MappingTraits<ELFYAML::ProgramHeader> {
936 static void mapping(IO &IO, ELFYAML::ProgramHeader &FileHdr);
937 static std::string validate(IO &IO, ELFYAML::ProgramHeader &FileHdr);
938};
939
940template <>
941struct MappingTraits<ELFYAML::Symbol> {
942 static void mapping(IO &IO, ELFYAML::Symbol &Symbol);
943 static std::string validate(IO &IO, ELFYAML::Symbol &Symbol);
944};
945
946template <> struct MappingTraits<ELFYAML::StackSizeEntry> {
947 static void mapping(IO &IO, ELFYAML::StackSizeEntry &Rel);
948};
949
950template <> struct MappingTraits<ELFYAML::BBAddrMapEntry> {
951 static void mapping(IO &IO, ELFYAML::BBAddrMapEntry &E);
952};
953
954template <> struct MappingTraits<ELFYAML::BBAddrMapEntry::BBRangeEntry> {
955 static void mapping(IO &IO, ELFYAML::BBAddrMapEntry::BBRangeEntry &E);
956};
957
958template <> struct MappingTraits<ELFYAML::BBAddrMapEntry::BBEntry> {
959 static void mapping(IO &IO, ELFYAML::BBAddrMapEntry::BBEntry &E);
960};
961
962template <> struct MappingTraits<ELFYAML::PGOAnalysisMapEntry> {
963 static void mapping(IO &IO, ELFYAML::PGOAnalysisMapEntry &Rel);
964};
965
966template <> struct MappingTraits<ELFYAML::PGOAnalysisMapEntry::PGOBBEntry> {
967 static void mapping(IO &IO, ELFYAML::PGOAnalysisMapEntry::PGOBBEntry &Rel);
968};
969
970template <>
971struct MappingTraits<ELFYAML::PGOAnalysisMapEntry::PGOBBEntry::SuccessorEntry> {
972 static void
973 mapping(IO &IO,
974 ELFYAML::PGOAnalysisMapEntry::PGOBBEntry::SuccessorEntry &Rel);
975};
976
977template <> struct MappingTraits<ELFYAML::GnuHashHeader> {
978 static void mapping(IO &IO, ELFYAML::GnuHashHeader &Rel);
979};
980
981template <> struct MappingTraits<ELFYAML::DynamicEntry> {
982 static void mapping(IO &IO, ELFYAML::DynamicEntry &Rel);
983};
984
985template <> struct MappingTraits<ELFYAML::NoteEntry> {
986 static void mapping(IO &IO, ELFYAML::NoteEntry &N);
987};
988
989template <> struct MappingTraits<ELFYAML::VerdefEntry> {
990 static void mapping(IO &IO, ELFYAML::VerdefEntry &E);
991};
992
993template <> struct MappingTraits<ELFYAML::VerneedEntry> {
994 static void mapping(IO &IO, ELFYAML::VerneedEntry &E);
995};
996
997template <> struct MappingTraits<ELFYAML::VernauxEntry> {
998 static void mapping(IO &IO, ELFYAML::VernauxEntry &E);
999};
1000
1001template <> struct MappingTraits<ELFYAML::LinkerOption> {
1002 static void mapping(IO &IO, ELFYAML::LinkerOption &Sym);
1003};
1004
1005template <> struct MappingTraits<ELFYAML::CallGraphEntryWeight> {
1006 static void mapping(IO &IO, ELFYAML::CallGraphEntryWeight &E);
1007};
1008
1009template <> struct MappingTraits<ELFYAML::Relocation> {
1010 static void mapping(IO &IO, ELFYAML::Relocation &Rel);
1011};
1012
1013template <> struct MappingTraits<ELFYAML::ARMIndexTableEntry> {
1014 static void mapping(IO &IO, ELFYAML::ARMIndexTableEntry &E);
1015};
1016
1017template <> struct MappingTraits<std::unique_ptr<ELFYAML::Chunk>> {
1018 static void mapping(IO &IO, std::unique_ptr<ELFYAML::Chunk> &C);
1019 static std::string validate(IO &io, std::unique_ptr<ELFYAML::Chunk> &C);
1020};
1021
1022template <>
1023struct MappingTraits<ELFYAML::Object> {
1024 static void mapping(IO &IO, ELFYAML::Object &Object);
1025};
1026
1027template <> struct MappingTraits<ELFYAML::SectionOrType> {
1028 static void mapping(IO &IO, ELFYAML::SectionOrType &sectionOrType);
1029};
1030
1031} // end namespace yaml
1032} // end namespace llvm
1033
1034#endif // LLVM_OBJECTYAML_ELFYAML_H
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
This file declares classes for handling the YAML representation of DWARF Debug Info.
#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)
Utility for declaring that a std::vector of a particular type should be considered a YAML sequence.
#define LLVM_YAML_STRONG_TYPEDEF(_base, _type)
YAML I/O does conversion based on types. But often native data types are just a typedef of built in i...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition ArrayRef.h:41
StringRef - Represent a constant reference to a string, i.e.
Definition StringRef.h:55
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition Twine.h:82
Specialized YAMLIO scalar type for representing a binary blob.
Definition YAML.h:64
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
@ C
The default llvm calling convention, compatible with C.
Definition CallingConv.h:34
std::string appendUniqueSuffix(StringRef Name, const Twine &Msg)
unsigned getDefaultShEntSize(unsigned EMachine, ELF_SHT SecType, StringRef SecName)
Definition ELFYAML.h:77
StringRef dropUniqueSuffix(StringRef S)
bool shouldAllocateFileSpace(ArrayRef< ProgramHeader > Phdrs, const NoBitsSection &S)
@ EM_MIPS
Definition ELF.h:146
@ SHT_GROUP
Definition ELF.h:1161
@ SHT_REL
Definition ELF.h:1155
@ SHT_LLVM_CALL_GRAPH_PROFILE
Definition ELF.h:1184
@ SHT_SYMTAB
Definition ELF.h:1148
@ SHT_RELR
Definition ELF.h:1165
@ SHT_DYNAMIC
Definition ELF.h:1152
@ SHT_SYMTAB_SHNDX
Definition ELF.h:1162
@ SHT_RELA
Definition ELF.h:1150
@ SHT_DYNSYM
Definition ELF.h:1157
@ SHT_MIPS_ABIFLAGS
Definition ELF.h:1227
@ SHT_GNU_versym
Definition ELF.h:1199
@ SHT_HASH
Definition ELF.h:1151
This is an optimization pass for GlobalISel generic memory operations.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
Definition Casting.h:643
Implement std::hash so that hash_code can be used in STL containers.
Definition BitVector.h:867
#define N
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:695
static bool classof(const Chunk *S)
Definition ELFYAML.h:699
std::optional< std::vector< ARMIndexTableEntry > > Entries
Definition ELFYAML.h:691
std::optional< std::vector< YAMLFlowString > > Symbols
Definition ELFYAML.h:522
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:526
static bool classof(const Chunk *S)
Definition ELFYAML.h:530
std::optional< llvm::yaml::Hex64 > Hash
Definition ELFYAML.h:166
std::optional< std::vector< llvm::yaml::Hex64 > > CallsiteEndOffsets
Definition ELFYAML.h:165
std::optional< uint64_t > NumBlocks
Definition ELFYAML.h:173
std::optional< std::vector< BBEntry > > BBEntries
Definition ELFYAML.h:174
llvm::yaml::Hex64 getFunctionAddress() const
Definition ELFYAML.h:180
std::optional< uint64_t > NumBBRanges
Definition ELFYAML.h:177
llvm::yaml::Hex16 Feature
Definition ELFYAML.h:169
bool hasAnyCallsiteEndOffsets() const
Definition ELFYAML.h:187
std::optional< std::vector< BBRangeEntry > > BBRanges
Definition ELFYAML.h:178
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:367
static bool classof(const Chunk *S)
Definition ELFYAML.h:371
std::optional< std::vector< BBAddrMapEntry > > Entries
Definition ELFYAML.h:362
std::optional< std::vector< PGOAnalysisMapEntry > > PGOAnalyses
Definition ELFYAML.h:363
std::optional< std::vector< CallGraphEntryWeight > > Entries
Definition ELFYAML.h:573
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:577
static bool classof(const Chunk *S)
Definition ELFYAML.h:581
Chunk(ChunkKind K, bool Implicit)
Definition ELFYAML.h:265
std::optional< llvm::yaml::Hex64 > Offset
Definition ELFYAML.h:259
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:557
static bool classof(const Chunk *S)
Definition ELFYAML.h:561
std::optional< std::vector< YAMLFlowString > > Libs
Definition ELFYAML.h:553
llvm::yaml::Hex64 Val
Definition ELFYAML.h:156
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:399
static bool classof(const Chunk *S)
Definition ELFYAML.h:403
std::optional< std::vector< DynamicEntry > > Entries
Definition ELFYAML.h:395
std::optional< llvm::yaml::Hex16 > EPhNum
Definition ELFYAML.h:126
std::optional< llvm::yaml::Hex64 > EShOff
Definition ELFYAML.h:128
std::optional< llvm::yaml::Hex64 > EPhOff
Definition ELFYAML.h:124
std::optional< llvm::yaml::Hex16 > EShEntSize
Definition ELFYAML.h:127
std::optional< llvm::yaml::Hex16 > EPhEntSize
Definition ELFYAML.h:125
llvm::yaml::Hex8 ABIVersion
Definition ELFYAML.h:117
std::optional< llvm::yaml::Hex16 > EShNum
Definition ELFYAML.h:129
llvm::yaml::Hex64 Entry
Definition ELFYAML.h:121
std::optional< ELF_EF > Flags
Definition ELFYAML.h:120
std::optional< ELF_EM > Machine
Definition ELFYAML.h:119
std::optional< StringRef > SectionHeaderStringTable
Definition ELFYAML.h:122
std::optional< llvm::yaml::Hex16 > EShStrNdx
Definition ELFYAML.h:130
llvm::yaml::Hex64 Size
Definition ELFYAML.h:329
std::optional< yaml::BinaryRef > Pattern
Definition ELFYAML.h:328
static bool classof(const Chunk *S)
Definition ELFYAML.h:333
std::optional< llvm::yaml::Hex32 > MaskWords
Definition ELFYAML.h:469
llvm::yaml::Hex32 SymNdx
Definition ELFYAML.h:463
llvm::yaml::Hex32 Shift2
Definition ELFYAML.h:472
std::optional< llvm::yaml::Hex32 > NBuckets
Definition ELFYAML.h:459
std::optional< std::vector< llvm::yaml::Hex64 > > BloomFilter
Definition ELFYAML.h:477
std::optional< std::vector< llvm::yaml::Hex32 > > HashBuckets
Definition ELFYAML.h:478
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:483
static bool classof(const Chunk *S)
Definition ELFYAML.h:490
std::optional< GnuHashHeader > Header
Definition ELFYAML.h:476
std::optional< std::vector< llvm::yaml::Hex32 > > HashValues
Definition ELFYAML.h:479
static bool classof(const Chunk *S)
Definition ELFYAML.h:632
std::optional< std::vector< SectionOrType > > Members
Definition ELFYAML.h:623
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:628
std::optional< StringRef > Signature
Definition ELFYAML.h:624
std::optional< std::vector< uint32_t > > Chain
Definition ELFYAML.h:439
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:441
std::optional< llvm::yaml::Hex64 > NChain
Definition ELFYAML.h:448
static bool classof(const Chunk *S)
Definition ELFYAML.h:452
std::optional< std::vector< uint32_t > > Bucket
Definition ELFYAML.h:438
std::optional< llvm::yaml::Hex64 > NBucket
Definition ELFYAML.h:447
std::optional< std::vector< LinkerOption > > Options
Definition ELFYAML.h:539
static bool classof(const Chunk *S)
Definition ELFYAML.h:547
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:543
llvm::yaml::Hex16 Version
Definition ELFYAML.h:706
static bool classof(const Chunk *S)
Definition ELFYAML.h:720
MIPS_AFL_FLAGS1 Flags1
Definition ELFYAML.h:715
llvm::yaml::Hex8 ISARevision
Definition ELFYAML.h:708
MIPS_AFL_EXT ISAExtension
Definition ELFYAML.h:713
llvm::yaml::Hex32 Flags2
Definition ELFYAML.h:716
static bool classof(const Chunk *S)
Definition ELFYAML.h:422
yaml::BinaryRef Desc
Definition ELFYAML.h:223
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:430
std::optional< std::vector< ELFYAML::NoteEntry > > Notes
Definition ELFYAML.h:426
static bool classof(const Chunk *S)
Definition ELFYAML.h:434
std::optional< std::vector< Symbol > > DynamicSymbols
Definition ELFYAML.h:754
unsigned getMachine() const
Definition ELFYAML.cpp:35
std::optional< DWARFYAML::Data > DWARF
Definition ELFYAML.h:755
const SectionHeaderTable & getSectionHeaderTable() const
Definition ELFYAML.h:765
FileHeader Header
Definition ELFYAML.h:742
std::vector< std::unique_ptr< Chunk > > Chunks
Definition ELFYAML.h:747
ELF_ELFOSABI getOSAbi() const
Definition ELFYAML.cpp:33
std::vector< ProgramHeader > ProgramHeaders
Definition ELFYAML.h:743
std::optional< std::vector< Symbol > > Symbols
Definition ELFYAML.h:753
std::vector< Section * > getSections()
Definition ELFYAML.h:757
std::optional< std::vector< SuccessorEntry > > Successors
Definition ELFYAML.h:210
std::optional< uint32_t > PostLinkBBFreq
Definition ELFYAML.h:209
std::optional< std::vector< PGOBBEntry > > PGOBBEntries
Definition ELFYAML.h:213
std::optional< uint64_t > FuncEntryCount
Definition ELFYAML.h:212
std::optional< llvm::yaml::Hex64 > Align
Definition ELFYAML.h:730
llvm::yaml::Hex64 PAddr
Definition ELFYAML.h:729
std::optional< llvm::yaml::Hex64 > Offset
Definition ELFYAML.h:733
llvm::yaml::Hex64 VAddr
Definition ELFYAML.h:728
std::optional< llvm::yaml::Hex64 > MemSize
Definition ELFYAML.h:732
std::optional< StringRef > FirstSec
Definition ELFYAML.h:734
std::optional< StringRef > LastSec
Definition ELFYAML.h:735
std::optional< llvm::yaml::Hex64 > FileSize
Definition ELFYAML.h:731
std::vector< Chunk * > Chunks
Definition ELFYAML.h:738
static bool classof(const Chunk *S)
Definition ELFYAML.h:411
std::optional< llvm::yaml::Hex64 > Info
Definition ELFYAML.h:407
std::optional< std::vector< uint8_t > > ContentBuf
Definition ELFYAML.h:416
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:648
std::optional< std::vector< Relocation > > Relocations
Definition ELFYAML.h:643
static bool classof(const Chunk *S)
Definition ELFYAML.h:652
std::optional< StringRef > Symbol
Definition ELFYAML.h:639
llvm::yaml::Hex64 Offset
Definition ELFYAML.h:636
static bool classof(const Chunk *S)
Definition ELFYAML.h:666
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:662
std::optional< std::vector< llvm::yaml::Hex64 > > Entries
Definition ELFYAML.h:658
std::optional< std::vector< SectionHeader > > Excluded
Definition ELFYAML.h:345
static constexpr StringRef TypeStr
Definition ELFYAML.h:358
std::optional< bool > NoHeaders
Definition ELFYAML.h:346
static bool classof(const Chunk *S)
Definition ELFYAML.h:340
SectionHeaderTable(bool IsImplicit)
Definition ELFYAML.h:337
size_t getNumHeaders(size_t SectionsNum) const
Definition ELFYAML.h:348
std::optional< std::vector< SectionHeader > > Sections
Definition ELFYAML.h:344
std::optional< llvm::yaml::Hex64 > Address
Definition ELFYAML.h:272
std::optional< StringRef > Link
Definition ELFYAML.h:273
Section(ChunkKind Kind, bool IsImplicit=false)
Definition ELFYAML.h:283
std::optional< llvm::yaml::Hex64 > Size
Definition ELFYAML.h:278
static bool classof(const Chunk *S)
Definition ELFYAML.h:285
std::optional< llvm::yaml::Hex64 > ShAddrAlign
Definition ELFYAML.h:300
llvm::yaml::Hex64 AddressAlign
Definition ELFYAML.h:274
unsigned OriginalSecNdx
Definition ELFYAML.h:281
std::optional< ELF_SHF > Flags
Definition ELFYAML.h:271
std::optional< ELF_SHT > ShType
Definition ELFYAML.h:321
std::optional< llvm::yaml::Hex64 > ShOffset
Definition ELFYAML.h:308
virtual std::vector< std::pair< StringRef, bool > > getEntries() const
Definition ELFYAML.h:292
std::optional< llvm::yaml::Hex64 > ShFlags
Definition ELFYAML.h:315
std::optional< llvm::yaml::Hex64 > ShName
Definition ELFYAML.h:304
std::optional< yaml::BinaryRef > Content
Definition ELFYAML.h:277
std::optional< llvm::yaml::Hex64 > EntSize
Definition ELFYAML.h:275
std::optional< llvm::yaml::Hex64 > ShSize
Definition ELFYAML.h:312
llvm::yaml::Hex64 Size
Definition ELFYAML.h:218
llvm::yaml::Hex64 Address
Definition ELFYAML.h:217
static bool classof(const Chunk *S)
Definition ELFYAML.h:385
static bool nameMatches(StringRef Name)
Definition ELFYAML.h:389
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:381
std::optional< std::vector< StackSizeEntry > > Entries
Definition ELFYAML.h:377
std::optional< ELF_SHN > Index
Definition ELFYAML.h:141
std::optional< StringRef > Section
Definition ELFYAML.h:140
std::optional< uint8_t > Other
Definition ELFYAML.h:145
std::optional< uint32_t > StName
Definition ELFYAML.h:147
std::optional< llvm::yaml::Hex64 > Value
Definition ELFYAML.h:143
std::optional< llvm::yaml::Hex64 > Size
Definition ELFYAML.h:144
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:676
static bool classof(const Chunk *S)
Definition ELFYAML.h:680
std::optional< std::vector< uint32_t > > Entries
Definition ELFYAML.h:672
std::optional< std::vector< uint16_t > > Entries
Definition ELFYAML.h:587
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:591
static bool classof(const Chunk *S)
Definition ELFYAML.h:595
std::optional< uint16_t > Flags
Definition ELFYAML.h:600
std::optional< uint16_t > VDAux
Definition ELFYAML.h:603
std::vector< StringRef > VerNames
Definition ELFYAML.h:604
std::optional< uint16_t > VersionNdx
Definition ELFYAML.h:601
std::optional< uint16_t > Version
Definition ELFYAML.h:599
std::optional< uint32_t > Hash
Definition ELFYAML.h:602
static bool classof(const Chunk *S)
Definition ELFYAML.h:617
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:613
std::optional< llvm::yaml::Hex64 > Info
Definition ELFYAML.h:609
std::optional< std::vector< VerdefEntry > > Entries
Definition ELFYAML.h:608
std::vector< VernauxEntry > AuxV
Definition ELFYAML.h:503
std::vector< std::pair< StringRef, bool > > getEntries() const override
Definition ELFYAML.h:512
std::optional< llvm::yaml::Hex64 > Info
Definition ELFYAML.h:508
static bool classof(const Chunk *S)
Definition ELFYAML.h:516
std::optional< std::vector< VerneedEntry > > VerneedV
Definition ELFYAML.h:507