diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-09-05 04:15:00 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-09-05 04:15:00 +0000 |
| commit | 5c70de1072b1ac25a3e318c9a2cd68f34d10959b (patch) | |
| tree | 2b3a8ef95a2933e6bf9cff88708bac66cfa31e5e /llvm/test/DebugInfo | |
| parent | 1a486da543b7e4ea7a635f8f467542fd9398772c (diff) | |
| download | bcm5719-llvm-5c70de1072b1ac25a3e318c9a2cd68f34d10959b.tar.gz bcm5719-llvm-5c70de1072b1ac25a3e318c9a2cd68f34d10959b.zip | |
MC: correct DWARF header for PE/COFF assembly input
The header contains an offset to the DWARF line table for the CU. The offset
must be section relative for COFF and absolute for others. The non-assembly
code path for the DWARF header generation already has the correct emission for
the headers. This corrects the assembly input path.
This was identified by BFD objecting to the LLVM generated DWARF information.
llvm-svn: 217222
Diffstat (limited to 'llvm/test/DebugInfo')
| -rw-r--r-- | llvm/test/DebugInfo/X86/dbg-asm.s | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/X86/dbg-asm.s b/llvm/test/DebugInfo/X86/dbg-asm.s index 66a0292461d..de4e8e4a97b 100644 --- a/llvm/test/DebugInfo/X86/dbg-asm.s +++ b/llvm/test/DebugInfo/X86/dbg-asm.s @@ -12,11 +12,13 @@ _a: # CHECK-COFF: Relocations [ # CHECK-COFF: Section {{.*}} .debug_info { # CHECK-COFF: 0x6 IMAGE_REL_I386_SECREL .debug_abbrev +# CHECK-COFF: 0xC IMAGE_REL_I386_SECREL .debug_line # CHECK-COFF: } # CHECK-COFF: ] # CHECK-ELF: Relocations [ # CHECK-ELF: Section {{.*}} .rel.debug_info { # CHECK-ELF: 0x6 R_386_32 .debug_abbrev +# CHECK-ELF: 0xC R_386_32 .debug_line # CHECK-ELF: } # CHECK-ELF: ] |

