James Henderson | d621037 | 2018-05-10 10:52:21 +0000 | [diff] [blame] | 1 | # REQUIRES: x86 |
| 2 | |
| 3 | # LLD uses the debug data to get information for error messages, if possible. |
| 4 | # However, if the debug line section is empty, we should not attempt to parse |
| 5 | # it, as that would result in errors from the parser. |
| 6 | |
| 7 | # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o |
Fangrui Song | 40a9f22 | 2018-07-02 17:48:23 +0000 | [diff] [blame^] | 8 | # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s |
James Henderson | d621037 | 2018-05-10 10:52:21 +0000 | [diff] [blame] | 9 | |
| 10 | # CHECK-NOT: warning: |
| 11 | # CHECK-NOT: error: |
| 12 | # CHECK: error: undefined symbol: undefined |
| 13 | # CHECK-NEXT: {{.*}}.o:(.text+0x1) |
| 14 | # CHECK-NOT: warning: |
| 15 | # CHECK-NOT: error: |
| 16 | |
| 17 | .globl _start |
| 18 | _start: |
| 19 | callq undefined |
| 20 | |
| 21 | .section .debug_line,"",@progbits |