39 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/multiple-cu.s -o %t2.o4# RUN: ld.lld -r -o %t.o %t1.o %t2.o5# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s6 7# CHECK: error: undefined symbol: foo8# CHECK-NEXT: referenced by test1.c:29 10# CHECK: error: undefined symbol: bar11# CHECK-NEXT: referenced by test2.c:212 13 .globl _start14_start:15 .file 1 "test1.c"16 .loc 1 2 017 jmp foo18 19 .section .debug_abbrev,"",@progbits20 .byte 1 # Abbreviation Code21 .byte 17 # DW_TAG_compile_unit22 .byte 0 # DW_CHILDREN_no23 .byte 16 # DW_AT_stmt_list24 .byte 23 # DW_FORM_sec_offset25 .byte 0 # EOM(1)26 .byte 0 # EOM(2)27 .byte 0 # EOM(3)28 29 .section .debug_info,"",@progbits30 .long .Lend0 - .Lbegin0 # Length of Unit31.Lbegin0:32 .short 4 # DWARF version number33 .long .debug_abbrev # Offset Into Abbrev. Section34 .byte 8 # Address Size (in bytes)35 .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit36 .long .debug_line # DW_AT_stmt_list37.Lend0:38 .section .debug_line,"",@progbits39