brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · f9fe13d Raw
49 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o3// RUN: not ld.lld --vs-diagnostics %t1.o -o /dev/null 2>&1 \4// RUN:   | FileCheck -check-prefix=ERR -check-prefix=CHECK %s5// RUN: ld.lld --vs-diagnostics --warn-unresolved-symbols %t1.o -o %tout 2>&1 \6// RUN:   | FileCheck -check-prefix=WARN -check-prefix=CHECK %s7 8// ERR:        undef3.s(15): error: undefined symbol: foo9// WARN:       undef3.s(15): warning: undefined symbol: foo10// CHECK:      >>> referenced by undef3.s:1511// CHECK-NEXT: >>> {{.*}}1.o:(.text+0x{{.+}})12 13// ERR:        /tmp{{/|\\}}undef3.s(20): error: undefined symbol: bar14// WARN:       /tmp{{/|\\}}undef3.s(20): warning: undefined symbol: bar15// CHECK:      >>> referenced by undef3.s:20 (/tmp{{/|\\}}undef3.s:20)16// CHECK-NEXT: >>> {{.*}}1.o:(.text+0x{{.+}})17 18.file 1 "undef3.s"19.file 2 "/tmp" "undef3.s"20 21.global _start, foo, bar22.text23_start:24.loc 1 1525  jmp foo26.loc 2 2027  jmp bar28 29.section .debug_abbrev,"",@progbits30  .byte  1                      # Abbreviation Code31  .byte 17                      # DW_TAG_compile_unit32  .byte  0                      # DW_CHILDREN_no33  .byte 16                      # DW_AT_stmt_list34  .byte 23                      # DW_FORM_sec_offset35  .byte  0                      # EOM(1)36  .byte  0                      # EOM(2)37  .byte  0                      # EOM(3)38 39.section .debug_info,"",@progbits40  .long .Lend0 - .Lbegin0       # Length of Unit41.Lbegin0:42  .short 4                      # DWARF version number43  .long  .debug_abbrev          # Offset Into Abbrev. Section44  .byte  8                      # Address Size (in bytes)45  .byte  1                      # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit46  .long  .debug_line            # DW_AT_stmt_list47.Lend0:48  .section .debug_line,"",@progbits49