blob: d64746bf2600482dca9cd43793206971f55f94fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: llvm-mc %p/Inputs/copy-rel-pie.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t2.o -o %t2.so -shared
// RUN: not ld.lld %t.o %t2.so -o %t.exe -pie 2>&1 | FileCheck %s
// CHECK: can't create dynamic relocation R_X86_64_64 against symbol bar
// CHECK: can't create dynamic relocation R_X86_64_64 against symbol foo
.global _start
_start:
.quad bar
.quad foo
|