forked from OSchip/llvm-project
11 lines
354 B
ArmAsm
11 lines
354 B
ArmAsm
// 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
|
|
// RUN: not ld.lld %t.o %t2.so -o %t.exe 2>&1 | FileCheck %s
|
|
|
|
// CHECK: cannot create a copy relocation for symbol x
|
|
|
|
.global _start
|
|
_start:
|
|
call x
|