49 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3// RUN: not ld.lld --vs-diagnostics -shared %t.o -o /dev/null 2>&1 \4// RUN: | FileCheck %s5 6// CHECK: undef.s(15): error: undefined hidden symbol: foo7// CHECK-NEXT: >>> referenced by undef.s:158 9// CHECK: undef.s(27): error: undefined protected symbol: bar10// CHECK-NEXT: >>> referenced by undef.s:2711 12// CHECK: /tmp{{/|\\}}undef.s(13): error: undefined protected symbol: baz13// CHECK-NEXT: >>> referenced by undef.s:13 (/tmp{{/|\\}}undef.s:13)14 15.file 1 "undef.s"16.file 2 "/tmp" "undef.s"17 18.hidden foo19.protected bar, baz20.text21_start:22.loc 1 1523 jmp foo24.loc 1 2725 jmp bar26.loc 2 1327 jmp baz28 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