[lld] r339550 - [LLD][ELF] - Update test case to check the error message reported. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 13 03:28:00 PDT 2018
Author: grimar
Date: Mon Aug 13 03:28:00 2018
New Revision: 339550
URL: http://llvm.org/viewvc/llvm-project?rev=339550&view=rev
Log:
[LLD][ELF] - Update test case to check the error message reported. NFC.
This updates znotext-plt-relocations-protected.s test case
(adds a file symbol) to check how the error message is built.
It allows to cover/test the following line:
https://github.com/llvm-mirror/lld/blob/master/ELF/Relocations.cpp#L79
Modified:
lld/trunk/test/ELF/znotext-plt-relocations-protected.s
Modified: lld/trunk/test/ELF/znotext-plt-relocations-protected.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/znotext-plt-relocations-protected.s?rev=339550&r1=339549&r2=339550&view=diff
==============================================================================
--- lld/trunk/test/ELF/znotext-plt-relocations-protected.s (original)
+++ lld/trunk/test/ELF/znotext-plt-relocations-protected.s Mon Aug 13 03:28:00 2018
@@ -4,7 +4,12 @@
# RUN: ld.lld %t2.o -o %t2.so -shared
# RUN: not ld.lld -z notext %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s
-# CHECK: error: cannot preempt symbol: foo
+# CHECK: error: cannot preempt symbol: foo
+# CHECK-NEXT: >>> defined in {{.*}}2.so
+# CHECK-NEXT: >>> referenced by test.cpp
+# CHECK-NEXT: >>> {{.*}}.o:(.text+0x0)
+
+.file "test.cpp"
.global _start
_start:
More information about the llvm-commits
mailing list