Fix header location with PHDR.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 28 Sep 2017 18:12:13 +0000 (18:12 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 28 Sep 2017 18:12:13 +0000 (18:12 +0000)
commit1f0fe88a1b3063a22a1b15ee131d5b1a6cfdd214
tree512528ed28a33473f030d9969c80989dd5b8f240
parent99fdb9d9270c9df61e29a926787c8aa4317187ba
Fix header location with PHDR.

We were not subtracting its size, causing it to overlap with section
data.

Fixes PR34750.

llvm-svn: 314440
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/header-phdr.s [new file with mode: 0644]