OSDN Git Service

[yaml2obj] Add default sh_entsize for dynamic sections
authorPaul Semel <semelpaul@gmail.com>
Mon, 23 Jul 2018 18:49:04 +0000 (18:49 +0000)
committerPaul Semel <semelpaul@gmail.com>
Mon, 23 Jul 2018 18:49:04 +0000 (18:49 +0000)
commitf3f578d2866457bc7ce70881293c2a0038b48238
treebc43eab2160b1a83f84461d782f2844745eeefdc
parent6884c73229ba88b4957db7df378d525823bb28c4
[yaml2obj] Add default sh_entsize for dynamic sections

Dynamic section holds a table, so the sh_entsize might be set. As the
dynamic section entry size never changes, we can default it to the size
of a dynamic entry.

Differential Revision: https://reviews.llvm.org/D49619

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337725 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/yaml2obj/dynamic-section.yaml [new file with mode: 0644]
tools/yaml2obj/yaml2elf.cpp