aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/x86-64-dyn-rel-error2.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/x86-64-dyn-rel-error2.s')
-rw-r--r--test/ELF/x86-64-dyn-rel-error2.s6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ELF/x86-64-dyn-rel-error2.s b/test/ELF/x86-64-dyn-rel-error2.s
index 88a180da6274..e316aeae54f4 100644
--- a/test/ELF/x86-64-dyn-rel-error2.s
+++ b/test/ELF/x86-64-dyn-rel-error2.s
@@ -4,9 +4,11 @@
// RUN: ld.lld %t2.o -shared -o %t2.so
// RUN: not ld.lld %t.o %t2.so -o %t 2>&1 | FileCheck %s
+// CHECK: relocation R_X86_64_PC32 cannot be used against shared object; recompile with -fPIC
+// CHECK: >>> defined in {{.*}}.so
+// CHECK: >>> referenced by {{.*}}.o:(.data+0x0)
+
.global _start
_start:
.data
.long bar - .
-
-// CHECK: {{.*}}:(.data+0x0): relocation R_X86_64_PC32 cannot be used against shared object; recompile with -fPIC.