[lldb] [test] Fix DW_TAG_GNU_call_site-DW_AT_low_pc.s relocation
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 2 Aug 2020 20:41:02 +0000 (22:41 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 2 Aug 2020 20:41:02 +0000 (22:41 +0200)
commite6c2c9a7d15171a57c98024511eaa8885f1bd5fd
tree1a00562267120dad544e7995728f8b3e26bb1db5
parent64516ec7c1298a4cb16980db49c2f9466f0f3ab5
[lldb] [test] Fix DW_TAG_GNU_call_site-DW_AT_low_pc.s relocation

I have made the DW_FORM_ref4 relative. One could also use relocated
DW_FORM_ref_addr instead.

Tested with:
        echo 'void f(){}'|clang -o 1.o -c -Wall -g -x c -;./bin/clang -o 1 1.o ../llvm-monorepo/lldb/test/Shell/SymbolFile/DWARF/DW_TAG_GNU_call_site-DW_AT_low_pc.s;./bin/lldb --no-lldbinit ./1 -o r -o 'p p' -o exit
lldb/test/Shell/SymbolFile/DWARF/DW_TAG_GNU_call_site-DW_AT_low_pc.s