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.global _start 8_start: 9 10 11call bar 12// CHECK: {{.*}}.o:(.text+0x1): cannot preempt symbol 'bar' defined in {{.*}}.so 13 14call zed 15// CHECK: symbol 'zed' defined in {{.*}}.so is missing type 16