forked from OSchip/llvm-project
13 lines
415 B
ArmAsm
13 lines
415 B
ArmAsm
// REQUIRES: x86
|
|
// RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t.o
|
|
// RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %p/Inputs/i386-pic-plt.s -o %t2.o
|
|
// RUN: ld.lld -shared %t2.o -o %t2.so
|
|
// RUN: ld.lld %t.o %t2.so -o %t
|
|
// RUN: not ld.lld %t.o %t2.so -o /dev/null -pie 2>&1 | FileCheck %s
|
|
|
|
// CHECK: error: symbol 'foo' cannot be preempted; recompile with -fPIE
|
|
|
|
.global _start
|
|
_start:
|
|
call foo
|