summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-09-06 19:57:48 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-09-06 19:57:48 +0000
commitfcefa21b0832d122bf3abdf93be6648fc5d643f7 (patch)
tree24cec3d66810c4c28f9731d76139eb8333e9183f /llvm/test/DebugInfo
parentc839c2bc206d92873f2a41c5c02353514dcfa0ac (diff)
downloadbcm5719-llvm-fcefa21b0832d122bf3abdf93be6648fc5d643f7.tar.gz
bcm5719-llvm-fcefa21b0832d122bf3abdf93be6648fc5d643f7.zip
MC: correct DWARF line info for PE/COFF
DWARF address ranges contain a reference to the debug_info section. This offset is an absolute relocation except on non-PE/COFF targets where it is section relative. We would emit this incorrectly, and trying to map the debug info from the address would fail. llvm-svn: 217317
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/X86/dbg-asm.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/X86/dbg-asm.s b/llvm/test/DebugInfo/X86/dbg-asm.s
index de4e8e4a97b..f6e5233ba45 100644
--- a/llvm/test/DebugInfo/X86/dbg-asm.s
+++ b/llvm/test/DebugInfo/X86/dbg-asm.s
@@ -14,6 +14,9 @@ _a:
# CHECK-COFF: 0x6 IMAGE_REL_I386_SECREL .debug_abbrev
# CHECK-COFF: 0xC IMAGE_REL_I386_SECREL .debug_line
# CHECK-COFF: }
+# CHECK-COFF: Section {{.*}} .debug_aranges {
+# CHECK-COFF: 0x6 IMAGE_REL_I386_SECREL .debug_info
+# CHECK-COFF: }
# CHECK-COFF: ]
# CHECK-ELF: Relocations [
@@ -21,4 +24,7 @@ _a:
# CHECK-ELF: 0x6 R_386_32 .debug_abbrev
# CHECK-ELF: 0xC R_386_32 .debug_line
# CHECK-ELF: }
+# CHECK-ELF: Section {{.*}} .rel.debug_aranges {
+# CHECK-ELF: 0x6 R_386_32 .debug_info
+# CHECK-ELF: }
# CHECK-ELF: ]
OpenPOWER on IntegriCloud