diff options
| author | George Rimar <grimar@accesssoftek.com> | 2019-06-14 11:01:14 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2019-06-14 11:01:14 +0000 |
| commit | cfa1a62a4cc4c5403c999e596f723cd2ea2be587 (patch) | |
| tree | b47eecac420a09f0dd3bfb0817e687dddb68af11 /llvm/tools/obj2yaml | |
| parent | 822794ef85d48a2b6f402d62798703932b16ae23 (diff) | |
| download | bcm5719-llvm-cfa1a62a4cc4c5403c999e596f723cd2ea2be587.tar.gz bcm5719-llvm-cfa1a62a4cc4c5403c999e596f723cd2ea2be587.zip | |
[yaml2obj] - Allow setting cutom Flags for implicit sections.
With this patch we get ability to set any flags we want
for implicit sections defined in YAML.
Differential revision: https://reviews.llvm.org/D63136
llvm-svn: 363367
Diffstat (limited to 'llvm/tools/obj2yaml')
| -rw-r--r-- | llvm/tools/obj2yaml/elf2yaml.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/obj2yaml/elf2yaml.cpp b/llvm/tools/obj2yaml/elf2yaml.cpp index eff743604d7..e84cc2f6b5e 100644 --- a/llvm/tools/obj2yaml/elf2yaml.cpp +++ b/llvm/tools/obj2yaml/elf2yaml.cpp @@ -329,7 +329,8 @@ template <class ELFT> std::error_code ELFDumper<ELFT>::dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S) { S.Type = Shdr->sh_type; - S.Flags = Shdr->sh_flags; + if (Shdr->sh_flags) + S.Flags = static_cast<ELFYAML::ELF_SHF>(Shdr->sh_flags); S.Address = Shdr->sh_addr; S.AddressAlign = Shdr->sh_addralign; if (Shdr->sh_entsize) |

