diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2015-07-03 14:19:06 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2015-07-03 14:19:06 +0000 |
commit | d0f7b425a7c108e6c509d9e54b531321665f6452 (patch) | |
tree | 16f3960579e5a2bbfd20e654e99b6edb0667046d /llvm/lib/Object/ELFYAML.cpp | |
parent | d0ee89d81a68eb1d9a1f9698db6bc4427a3b3061 (diff) | |
download | bcm5719-llvm-d0f7b425a7c108e6c509d9e54b531321665f6452.tar.gz bcm5719-llvm-d0f7b425a7c108e6c509d9e54b531321665f6452.zip |
[ELFYAML] Make the Size field for .bss section optional
It's a common case to have a zero-size .bss section in an object file.
llvm-svn: 241352
Diffstat (limited to 'llvm/lib/Object/ELFYAML.cpp')
-rw-r--r-- | llvm/lib/Object/ELFYAML.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/ELFYAML.cpp b/llvm/lib/Object/ELFYAML.cpp index 56eb374af23..72c232c3287 100644 --- a/llvm/lib/Object/ELFYAML.cpp +++ b/llvm/lib/Object/ELFYAML.cpp @@ -629,7 +629,7 @@ static void sectionMapping(IO &IO, ELFYAML::RawContentSection &Section) { static void sectionMapping(IO &IO, ELFYAML::NoBitsSection &Section) { commonSectionMapping(IO, Section); - IO.mapRequired("Size", Section.Size); + IO.mapOptional("Size", Section.Size, Hex64(0)); } static void sectionMapping(IO &IO, ELFYAML::RelocationSection &Section) { |