brintos

brintos / llvm-project-archived public Read only

0
0
Text · 415 B · 87638b9 Raw
13 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t.o3// RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %p/Inputs/i386-pic-plt.s -o %t2.o4// RUN: ld.lld -shared %t2.o -o %t2.so5// RUN: ld.lld %t.o %t2.so -o %t6// RUN: not ld.lld %t.o %t2.so -o /dev/null -pie 2>&1 | FileCheck %s7 8// CHECK: error: symbol 'foo' cannot be preempted; recompile with -fPIE9 10.global _start11_start:12  call foo13