2018-06-06 21:56:51 +08:00
|
|
|
// REQUIRES: x86
|
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
|
2018-07-03 01:48:23 +08:00
|
|
|
// RUN: not ld.lld %t.o %t2.so -o /dev/null 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:
|
2018-02-17 04:05:58 +08:00
|
|
|
.long x - .
|