diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-03-24 21:07:27 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-03-24 21:07:27 +0000 |
commit | f4ec1889db0cb381943553ee2bc3fc2c766bc166 (patch) | |
tree | d044c27db6d5730eb767f7e2455d9166d99e327f /test/DebugInfo | |
parent | 05e62b507a68c1e22308fee49a2a80d3fb5bc103 (diff) | |
download | llvm-f4ec1889db0cb381943553ee2bc3fc2c766bc166.tar.gz llvm-f4ec1889db0cb381943553ee2bc3fc2c766bc166.tar.bz2 llvm-f4ec1889db0cb381943553ee2bc3fc2c766bc166.tar.xz |
DebugInfo: Implement relative addressing for DW_AT_ranges under fission
This removes the debug_ranges relocations from debug_info.dwo (but
doesn't implement the DW_AT_GNU_ranges_base which is also necessary for
correct functioning)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo')
-rw-r--r-- | test/DebugInfo/X86/fission-ranges.ll | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/DebugInfo/X86/fission-ranges.ll b/test/DebugInfo/X86/fission-ranges.ll index 6a2bb487a7..b95038bacc 100644 --- a/test/DebugInfo/X86/fission-ranges.ll +++ b/test/DebugInfo/X86/fission-ranges.ll @@ -1,5 +1,14 @@ ; RUN: llc -split-dwarf=Enable -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t -; RUN: llvm-dwarfdump -debug-dump=all %t | FileCheck %s +; RUN: llvm-dwarfdump -debug-dump=info.dwo %t | FileCheck %s +; RUN: llvm-objdump -r %t | FileCheck --check-prefix=RELA %s + +; CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x000000a0) + +; Make sure we don't produce any relocations in any .dwo section (though in particular, debug_info.dwo) +; FIXME: There should be no relocations in .dwo sections at all, but for now there are debug_loc relocs here. +; RELA: RELOCATION RECORDS FOR [.rela.debug_info.dwo] +; RELA-NOT: R_X86_64_32 .debug_ranges +; RELA: RELOCATION RECORDS FOR ; From the code: @@ -29,8 +38,6 @@ ; clang -g -S -gsplit-dwarf -O1 small.c -; CHECK: DW_AT_ranges - @c = external global i32 ; Function Attrs: nounwind uwtable |