]> granicus.if.org Git - llvm/commit
[RuntimeDyld] Fix debug section relocation (pr20457)
authorPavel Labath <labath@google.com>
Wed, 17 May 2017 08:47:28 +0000 (08:47 +0000)
committerPavel Labath <labath@google.com>
Wed, 17 May 2017 08:47:28 +0000 (08:47 +0000)
commit28aa6e3bb4fd633d0bc2d153669cdf9c4acbded7
tree834237094c3f08be83f92a03ecad34613f1a1eed
parent5d9fea6f532f64424d45e083f0ee8c2bbf78c62a
[RuntimeDyld] Fix debug section relocation (pr20457)

Summary:
Debug info sections, (or non-SHF_ALLOC sections in general) should be
linked as if their load address was zero to emulate the behavior of the
static linker.

This bug was discovered because it was breaking lldb expression evaluation on
linux.

Reviewers: lhames

Subscribers: aprantl, eugene, clayborg, lldb-commits, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303239 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_debug_frame.s [new file with mode: 0644]