annotate lld/test/ELF/allow-shlib-undefined.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 2e18cbf3894f
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
anatofuz
parents:
diff changeset
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
anatofuz
parents:
diff changeset
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \
anatofuz
parents:
diff changeset
5 # RUN: %p/Inputs/allow-shlib-undefined.s -o %t1.o
anatofuz
parents:
diff changeset
6 # RUN: ld.lld -shared %t1.o -o %t.so
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 # RUN: ld.lld --allow-shlib-undefined %t.o %t.so -o /dev/null
anatofuz
parents:
diff changeset
9 # RUN: not ld.lld --no-allow-shlib-undefined %t.o %t.so -o /dev/null 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
10 # Executable defaults to --no-allow-shlib-undefined
anatofuz
parents:
diff changeset
11 # RUN: not ld.lld %t.o %t.so -o /dev/null 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
12 # -shared defaults to --allow-shlib-undefined
anatofuz
parents:
diff changeset
13 # RUN: ld.lld -shared %t.o %t.so -o /dev/null
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 # RUN: echo | llvm-mc -filetype=obj -triple=x86_64-unknown-linux -o %tempty.o
anatofuz
parents:
diff changeset
16 # RUN: ld.lld -shared %tempty.o -o %tempty.so
anatofuz
parents:
diff changeset
17 # RUN: ld.lld -shared %t1.o %tempty.so -o %t2.so
anatofuz
parents:
diff changeset
18 # RUN: ld.lld --no-allow-shlib-undefined %t.o %t2.so -o /dev/null
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 # DSO with undefines:
anatofuz
parents:
diff changeset
21 # should link with or without any of these options.
anatofuz
parents:
diff changeset
22 # RUN: ld.lld -shared %t1.o -o /dev/null
anatofuz
parents:
diff changeset
23 # RUN: ld.lld -shared --allow-shlib-undefined %t1.o -o /dev/null
anatofuz
parents:
diff changeset
24 # RUN: ld.lld -shared --no-allow-shlib-undefined %t1.o -o /dev/null
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 .globl _start
anatofuz
parents:
diff changeset
27 _start:
anatofuz
parents:
diff changeset
28 callq _shared@PLT
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 # CHECK: undefined reference to _unresolved