[ELFYAML] Fix handling SHT_NOBITS sections by obj2yaml/yaml2obj tools
authorSimon Atanasyan <simon@atanasyan.com>
Fri, 3 Jul 2015 14:07:06 +0000 (14:07 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Fri, 3 Jul 2015 14:07:06 +0000 (14:07 +0000)
commitc97046c6e69d17d04720271c4b9e258011fc3f63
tree1a6fbca930f9459ddc38d579f7083d722348917c
parent68a8b9f792ef268ff8323fedf4e118524c739a1d
[ELFYAML] Fix handling SHT_NOBITS sections by obj2yaml/yaml2obj tools

SHT_NOBITS sections do not have content in an object file. Now yaml2obj
tool does not accept `Content` field for such sections, and obj2yaml
tool does not attempt to read the section content from a file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241350 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFYAML.h
lib/Object/ELFYAML.cpp
test/Object/obj2yaml.test
test/Object/yaml2obj-elf-rel-noref.yaml
tools/obj2yaml/elf2yaml.cpp
tools/yaml2obj/yaml2elf.cpp