diff options
Diffstat (limited to 'llvm/tools/obj2yaml/elf2yaml.cpp')
-rw-r--r-- | llvm/tools/obj2yaml/elf2yaml.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/obj2yaml/elf2yaml.cpp b/llvm/tools/obj2yaml/elf2yaml.cpp index 804101f2dee..7404bae2a08 100644 --- a/llvm/tools/obj2yaml/elf2yaml.cpp +++ b/llvm/tools/obj2yaml/elf2yaml.cpp @@ -360,6 +360,8 @@ std::error_code ELFDumper<ELFT>::dumpRelocation(const RelT *Rel, template <class ELFT> std::error_code ELFDumper<ELFT>::dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S) { + // Dump fields. We do not dump the ShOffset field. When not explicitly + // set, the value is set by yaml2obj automatically. S.Type = Shdr->sh_type; if (Shdr->sh_flags) S.Flags = static_cast<ELFYAML::ELF_SHF>(Shdr->sh_flags); |