2016-05-24 10:37:40 +08:00
|
|
|
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
|
|
|
|
// RUN: llvm-mc %p/Inputs/copy-rel-corrupted.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
|
|
|
|
// RUN: ld.lld %t2.o -o %t2.so -shared
|
2016-10-20 04:05:43 +08:00
|
|
|
// RUN: not ld.lld %t.o %t2.so -o %t.exe 2>&1 | FileCheck %s
|
2016-05-24 10:37:40 +08:00
|
|
|
|
2016-10-19 17:35:19 +08:00
|
|
|
// CHECK: error: cannot create a copy relocation for symbol x
|
2016-05-24 10:37:40 +08:00
|
|
|
|
|
|
|
.global _start
|
|
|
|
_start:
|
|
|
|
call x
|