1// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/protected-shared.s -o %t2.o
4// RUN: ld.lld %t2.o -o %t2.so -shared
5// RUN: not ld.lld %t.o %t2.so -o %t 2>&1 | FileCheck %s
6
7// CHECK: cannot preempt symbol: bar
8// CHECK: >>> defined in {{.*}}.so
9// CHECK: >>> referenced by {{.*}}.o:(.text+0x1)
10// CHECK: symbol 'zed' defined in {{.*}}.so has no type
11
12.global _start
13_start:
14call bar
15call zed
16