[lld] r308391 - Make the test more precise.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 18 16:26:16 PDT 2017
Author: rafael
Date: Tue Jul 18 16:26:16 2017
New Revision: 308391
URL: http://llvm.org/viewvc/llvm-project?rev=308391&view=rev
Log:
Make the test more precise.
The real issue was the missing explicit versions.
Modified:
lld/trunk/test/ELF/version-script-twice.s
Modified: lld/trunk/test/ELF/version-script-twice.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-twice.s?rev=308391&r1=308390&r2=308391&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-twice.s (original)
+++ lld/trunk/test/ELF/version-script-twice.s Tue Jul 18 16:26:16 2017
@@ -1,13 +1,14 @@
# REQUIRES: x86
-# RUN: echo "FBSD_1.2 {};" > %t.ver
+# RUN: echo "FBSD_1.1 {}; FBSD_1.2 {};" > %t.ver
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld -shared %t.o -o %t.so --version-script=%t.ver
-# RUN: llvm-nm --dynamic %t.so | FileCheck %s
+# RUN: llvm-readobj --dyn-symbols --elf-output-style=GNU %t.so | FileCheck %s
.weak openat
openat:
+openat at FBSD_1.1 = openat
openat@@FBSD_1.2 = openat
-# CHECK: 0000000000001000 W openat
-# CHECK-NEXT: 0000000000001000 W openat
+# CHECK-DAG: openat at FBSD_1.1
+# CHECK-DAG: openat@@FBSD_1.2
More information about the llvm-commits
mailing list