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/lib/ObjectYAML | |
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/lib/ObjectYAML')
-rw-r--r-- | llvm/lib/ObjectYAML/ELFYAML.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp index c2a29f3ddad..e0b52d1fc33 100644 --- a/llvm/lib/ObjectYAML/ELFYAML.cpp +++ b/llvm/lib/ObjectYAML/ELFYAML.cpp @@ -900,7 +900,7 @@ StringRef MappingTraits<ELFYAML::Symbol>::validate(IO &IO, static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { IO.mapOptional("Name", Section.Name, StringRef()); IO.mapRequired("Type", Section.Type); - IO.mapOptional("Flags", Section.Flags, ELFYAML::ELF_SHF(0)); + IO.mapOptional("Flags", Section.Flags); IO.mapOptional("Address", Section.Address, Hex64(0)); IO.mapOptional("Link", Section.Link, StringRef()); IO.mapOptional("AddressAlign", Section.AddressAlign, Hex64(0)); |