[yaml2obj/obj2yaml] - Add support for .stack_sizes sections.
commitab8181e0debd4f0bf2f1fafb7f6ea98f1a775a12
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 24 Sep 2019 14:22:37 +0000 (24 14:22 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 24 Sep 2019 14:22:37 +0000 (24 14:22 +0000)
tree74050ea048c3dad73f798dd071b670494b445b5a
parent16d1916c998722664a67aee0e809263a0eea45a2
[yaml2obj/obj2yaml] - Add support for .stack_sizes sections.

.stack_sizes is a SHT_PROGBITS section that contains pairs of
<address (4/8 bytes), stack size (uleb128)>.

This patch teach tools to parse and dump it.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372762 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELF.h
include/llvm/ObjectYAML/ELFYAML.h
lib/ObjectYAML/ELFEmitter.cpp
lib/ObjectYAML/ELFYAML.cpp
test/tools/llvm-readobj/stack-sizes.test
test/tools/obj2yaml/elf-stack-sizes.yaml [new file with mode: 0644]
test/tools/yaml2obj/elf-stack-sizes.yaml [new file with mode: 0644]
tools/obj2yaml/elf2yaml.cpp