summaryrefslogtreecommitdiff
path: root/test/ELF/undef-with-plt-addr.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/undef-with-plt-addr.s')
-rw-r--r--test/ELF/undef-with-plt-addr.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ELF/undef-with-plt-addr.s b/test/ELF/undef-with-plt-addr.s
index 2e2fc20be3f6..d34859c04e8f 100644
--- a/test/ELF/undef-with-plt-addr.s
+++ b/test/ELF/undef-with-plt-addr.s
@@ -5,6 +5,9 @@
// RUN: ld.lld %t.o %t2.so -o %t3
// RUN: llvm-readobj -t -s -r %t3 | FileCheck %s
+// Test that -z nocopyreloc doesn't prevent the plt hack.
+// RUN: ld.lld %t.o %t2.so -o %t3 -z nocopyreloc
+
.globl _start
_start:
movabsq $set_data, %rax