aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/relocation-in-merge.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/relocation-in-merge.s')
-rw-r--r--test/ELF/relocation-in-merge.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ELF/relocation-in-merge.s b/test/ELF/relocation-in-merge.s
new file mode 100644
index 000000000000..820208a2cafe
--- /dev/null
+++ b/test/ELF/relocation-in-merge.s
@@ -0,0 +1,7 @@
+// REQUIRES: x86
+// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
+// RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s
+// CHECK: Relocations pointing to SHF_MERGE are not supported
+
+ .section .foo,"aM",@progbits,4
+ .long bar