]> granicus.if.org Git - llvm/commit
[dsymutil] Support and relocate base address selection entries for debug_loc
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 15 Oct 2019 23:43:37 +0000 (23:43 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 15 Oct 2019 23:43:37 +0000 (23:43 +0000)
commitcd6834c109a8d99666ab4471b6f275bd32e09766
tree55f4f310dee57d7e3f8a2556986703146ee7ef7e
parentb46098e73d22b7c80e2895edeccfddb7496fd6a8
[dsymutil] Support and relocate base address selection entries for debug_loc

Since r374600 clang emits base address selection entries. Currently
dsymutil does not support these entries and incorrectly interprets them
as location list entries.

This patch adds support for base address selection entries in dsymutil
and makes sure they are relocated correctly.

Thanks to Dave for coming up with the test case!

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374957 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/Inputs/private/tmp/baseaddr/loc1.o [new file with mode: 0644]
test/tools/dsymutil/Inputs/private/tmp/baseaddr/loc1.x86_64 [new file with mode: 0755]
test/tools/dsymutil/X86/debug-loc-base-addr.test [new file with mode: 0644]
tools/dsymutil/DwarfStreamer.cpp