[PATCH] D68085: [yaml2obj/obj2yaml] - Add support for SHT_HASH sections.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 07:20:37 PDT 2019
grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: seiya, rupprecht.
grimar added a child revision: D68086: [llvm-readelf] - Report a warning when .hash section contains a chain with a cycle..
SHT_HASH specification is:
https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter6-48031.html
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.
https://reviews.llvm.org/D68085
Files:
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
test/tools/yaml2obj/elf-hash-section.yaml
tools/obj2yaml/elf2yaml.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68085.221940.patch
Type: text/x-patch
Size: 14300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190926/9a15d200/attachment.bin>
More information about the llvm-commits
mailing list