[yaml2obj] - Do not ignore explicit addresses for .dynsym and .dynstr
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 19 Feb 2019 12:15:04 +0000 (12:15 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 19 Feb 2019 12:15:04 +0000 (12:15 +0000)
commit6947acd9da6c38d3a1826d0c446caba545456085
tree255f2e4fa98c9d8828dc52787298dad566b440fc
parent55d41a78ac45cc8ec49977bb653253b2839f8c6f
[yaml2obj] - Do not ignore explicit addresses for .dynsym and .dynstr

This fixes https://bugs.llvm.org/show_bug.cgi?id=40339

Previously if the addresses were set in YAML they were ignored for
.dynsym and .dynstr sections. The patch fixes that.

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

llvm-svn: 354318
llvm/test/tools/yaml2obj/dynsym-dynstr-addr.yaml [new file with mode: 0644]
llvm/tools/yaml2obj/yaml2elf.cpp