annotate lld/test/ELF/copy-errors.s @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children c4bab56944e8
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 %t.o
anatofuz
parents:
diff changeset
3 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/protected-shared.s -o %t2.o
anatofuz
parents:
diff changeset
4 // RUN: ld.lld %t2.o -o %t2.so -shared
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
5 // RUN: not ld.lld %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s
150
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 // CHECK: error: cannot preempt symbol: bar
anatofuz
parents:
diff changeset
8 // CHECK: >>> defined in {{.*}}.so
anatofuz
parents:
diff changeset
9 // CHECK: >>> referenced by {{.*}}.o:(.text+0x1)
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 // CHECK: error: symbol 'zed' has no type
anatofuz
parents:
diff changeset
12 // CHECK-NEXT: >>> defined in {{.*}}.so
anatofuz
parents:
diff changeset
13 // CHECK-NEXT: >>> referenced by {{.*}}.o:(.text+0x6)
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // RUN: ld.lld --noinhibit-exec %t.o %t2.so -o %t 2>&1 | FileCheck %s --check-prefix=NOINHIBIT
anatofuz
parents:
diff changeset
16 // NOINHIBIT: warning: cannot preempt symbol: bar
anatofuz
parents:
diff changeset
17 // NOINHIBIT-NEXT: >>> defined in {{.*}}.so
anatofuz
parents:
diff changeset
18 // NOINHIBIT-NEXT: >>> referenced by {{.*}}.o:(.text+0x1)
anatofuz
parents:
diff changeset
19 // NOINHIBIT: warning: symbol 'zed' has no type
anatofuz
parents:
diff changeset
20 // NOINHIBIT-NEXT: >>> defined in {{.*}}.so
anatofuz
parents:
diff changeset
21 // NOINHIBIT-NEXT: >>> referenced by {{.*}}.o:(.text+0x6)
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 .global _start
anatofuz
parents:
diff changeset
24 _start:
anatofuz
parents:
diff changeset
25 .byte 0xe8
anatofuz
parents:
diff changeset
26 .long bar - .
anatofuz
parents:
diff changeset
27 .byte 0xe8
anatofuz
parents:
diff changeset
28 .long zed - .