summaryrefslogtreecommitdiff
path: root/lib/Object
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-05-14 05:07:47 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-05-14 05:07:47 +0000
commitb8236e532a9bc5e0c6684a0b51f808d4754272bd (patch)
tree6b8bb07cc323e06c40b3fa126a36294478296c86 /lib/Object
parent0fe443d8932b68ebbe281141ef79f81ee97e292d (diff)
downloadllvm-b8236e532a9bc5e0c6684a0b51f808d4754272bd.tar.gz
llvm-b8236e532a9bc5e0c6684a0b51f808d4754272bd.tar.bz2
llvm-b8236e532a9bc5e0c6684a0b51f808d4754272bd.tar.xz
[obj2yaml] Support ELF input format in the obj2yaml tool.
The ELF header e_flags field in the MIPS related test cases handled incorrectly. The obj2yaml prints too many flags. I will fix that in the next patches. The patch reviewed by Michael Spencer and Sean Silva. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/ELFYAML.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Object/ELFYAML.cpp b/lib/Object/ELFYAML.cpp
index 35cda6378c..75a4de0a7b 100644
--- a/lib/Object/ELFYAML.cpp
+++ b/lib/Object/ELFYAML.cpp
@@ -670,7 +670,8 @@ void MappingTraits<std::unique_ptr<ELFYAML::Section>>::mapping(
ELFYAML::ELF_SHT sectionType;
if (IO.outputting())
sectionType = Section->Type;
- IO.mapRequired("Type", sectionType);
+ else
+ IO.mapRequired("Type", sectionType);
switch (sectionType) {
case ELF::SHT_REL: