2016-04-30 09:15:17 +08:00
|
|
|
// REQUIRES: x86
|
2016-02-23 05:23:29 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-in-shared.s -o %t1.o
|
|
|
|
// RUN: ld.lld -shared %t1.o -o %t1.so
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o
|
2016-04-30 09:15:17 +08:00
|
|
|
// RUN: not ld.lld %t2.o %t1.so -o %t2.so -shared 2>&1 | FileCheck %s
|
|
|
|
|
2017-07-04 23:53:57 +08:00
|
|
|
// CHECK: can't create dynamic relocation R_X86_64_64 against symbol: foo in readonly segment
|
2017-04-04 05:36:31 +08:00
|
|
|
// CHECK: >>> defined in {{.*}}.so
|
|
|
|
// CHECK: >>> referenced by {{.*}}.o:(.text+0x0)
|
2016-02-23 05:23:29 +08:00
|
|
|
|
|
|
|
.quad foo
|