[yaml2obj/obj2yaml] - Add support for SHT_HASH sections.
commit187b51ef0ca95f6a87d1b3b4b694e279bba58658
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 1 Oct 2019 09:45:59 +0000 (1 09:45 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 1 Oct 2019 09:45:59 +0000 (1 09:45 +0000)
treee43cb051b9e895b2fab2375cf2c8f290a74b0c40
parent7eafbcdc0e389489a948f5631d340a0040896b7c
[yaml2obj/obj2yaml] - Add support for SHT_HASH sections.

SHT_HASH specification is:
http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#hash

In short the format is the following: it has 2 uint32 fields
in its header: nbucket and nchain followed by (nbucket + nchain)
uint32 values.

This patch allows dumping and parsing such sections.

Differential revision: https://reviews.llvm.org/D68085

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373315 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ObjectYAML/ELFYAML.h
lib/ObjectYAML/ELFEmitter.cpp
lib/ObjectYAML/ELFYAML.cpp
test/tools/llvm-readobj/elf-section-types.test
test/tools/llvm-size/elf-sysv.test
test/tools/obj2yaml/elf-hash-section.yaml [new file with mode: 0644]
test/tools/yaml2obj/elf-hash-section.yaml [new file with mode: 0644]
tools/obj2yaml/elf2yaml.cpp