diff options
author | Eric Christopher <echristo@gmail.com> | 2013-04-07 03:43:09 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-04-07 03:43:09 +0000 |
commit | 9a9e73b47d139ecb6bfc3c934352ab7c7ee9af44 (patch) | |
tree | eafe60a74a31567b9169b095c09ab82061466103 /test/DebugInfo/X86 | |
parent | 16f19693282b41bb6b0a627e417684add6f26de4 (diff) |
DW_FORM_sec_offset should be a relocation on platforms that use
a relocation across sections. Do this for DW_AT_stmt list in the
skeleton CU and check the relocations in the debug_info section.
Add a FIXME for multiple CUs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/X86')
-rw-r--r-- | test/DebugInfo/X86/fission-cu.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/DebugInfo/X86/fission-cu.ll b/test/DebugInfo/X86/fission-cu.ll index bfe2d17e20..e139e3be77 100644 --- a/test/DebugInfo/X86/fission-cu.ll +++ b/test/DebugInfo/X86/fission-cu.ll @@ -1,5 +1,6 @@ ; 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-readobj --relocations %t | FileCheck --check-prefix=OBJ %s @a = common global i32 0, align 4 @@ -98,3 +99,14 @@ ; CHECK: 0x00000008: 0000003b ; CHECK: 0x0000000c: 0000005f ; CHECK: 0x00000010: 00000061 + +; Object file checks +; For x86-64-linux we should have this set of relocations for the debug info section +; +; OBJ: .debug_info +; OBJ-NEXT: R_X86_64_32 .debug_abbrev +; OBJ-NEXT: R_X86_64_32 .debug_str +; OBJ-NEXT: R_X86_64_32 .debug_addr +; OBJ-NEXT: R_X86_64_32 .debug_line +; OBJ-NEXT: R_X86_64_32 .debug_str +; OBJ-NEXT: } |