annotate lld/test/ELF/multiple-cu.s @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # REQUIRES: x86
anatofuz
parents:
diff changeset
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
anatofuz
parents:
diff changeset
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/multiple-cu.s -o %t2.o
anatofuz
parents:
diff changeset
4 # RUN: ld.lld -r -o %t.o %t1.o %t2.o
anatofuz
parents:
diff changeset
5 # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 # CHECK: error: undefined symbol: foo
anatofuz
parents:
diff changeset
8 # CHECK-NEXT: referenced by test1.c:2
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 # CHECK: error: undefined symbol: bar
anatofuz
parents:
diff changeset
11 # CHECK-NEXT: referenced by test2.c:2
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 .globl _start
anatofuz
parents:
diff changeset
14 _start:
anatofuz
parents:
diff changeset
15 .file 1 "test1.c"
anatofuz
parents:
diff changeset
16 .loc 1 2 0
anatofuz
parents:
diff changeset
17 jmp foo
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 .section .debug_abbrev,"",@progbits
anatofuz
parents:
diff changeset
20 .byte 1 # Abbreviation Code
anatofuz
parents:
diff changeset
21 .byte 17 # DW_TAG_compile_unit
anatofuz
parents:
diff changeset
22 .byte 0 # DW_CHILDREN_no
anatofuz
parents:
diff changeset
23 .byte 16 # DW_AT_stmt_list
anatofuz
parents:
diff changeset
24 .byte 23 # DW_FORM_sec_offset
anatofuz
parents:
diff changeset
25 .byte 0 # EOM(1)
anatofuz
parents:
diff changeset
26 .byte 0 # EOM(2)
anatofuz
parents:
diff changeset
27 .byte 0 # EOM(3)
anatofuz
parents:
diff changeset
28
anatofuz
parents:
diff changeset
29 .section .debug_info,"",@progbits
anatofuz
parents:
diff changeset
30 .long .Lend0 - .Lbegin0 # Length of Unit
anatofuz
parents:
diff changeset
31 .Lbegin0:
anatofuz
parents:
diff changeset
32 .short 4 # DWARF version number
anatofuz
parents:
diff changeset
33 .long .debug_abbrev # Offset Into Abbrev. Section
anatofuz
parents:
diff changeset
34 .byte 8 # Address Size (in bytes)
anatofuz
parents:
diff changeset
35 .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit
anatofuz
parents:
diff changeset
36 .long .debug_line # DW_AT_stmt_list
anatofuz
parents:
diff changeset
37 .Lend0:
anatofuz
parents:
diff changeset
38 .section .debug_line,"",@progbits