diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:48:50 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:48:50 +0000 |
| commit | 1c98619801a5705c688e683be3ef9d70169a0686 (patch) | |
| tree | 8422105cd1a94c368315f2db16b9ac746cf7c000 /test/ELF/copy-in-shared.s | |
| parent | f4f3ce4613680903220815690ad79fc7ba0a2e26 (diff) | |
Notes
Diffstat (limited to 'test/ELF/copy-in-shared.s')
| -rw-r--r-- | test/ELF/copy-in-shared.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ELF/copy-in-shared.s b/test/ELF/copy-in-shared.s new file mode 100644 index 0000000000000..4114d95fb1014 --- /dev/null +++ b/test/ELF/copy-in-shared.s @@ -0,0 +1,10 @@ +// REQUIRES: x86 +// 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 +// RUN: not ld.lld %t2.o %t1.so -o %t2.so -shared 2>&1 | FileCheck %s + + +.quad foo + +// CHECK: can't create dynamic relocation R_X86_64_64 against readonly segment |
