[lld] r178840 - [ELF][test] add dynamic library search
Shankar Easwaran
shankare at codeaurora.org
Thu Apr 4 21:34:57 PDT 2013
Author: shankare
Date: Thu Apr 4 23:34:57 2013
New Revision: 178840
URL: http://llvm.org/viewvc/llvm-project?rev=178840&view=rev
Log:
[ELF][test] add dynamic library search
Added:
lld/trunk/test/elf/X86_64/Inputs/fn.c
lld/trunk/test/elf/X86_64/Inputs/libfn.so (with props)
lld/trunk/test/elf/X86_64/Inputs/main.c
lld/trunk/test/elf/X86_64/Inputs/main.o (with props)
lld/trunk/test/elf/X86_64/dynlib-search.test
Added: lld/trunk/test/elf/X86_64/Inputs/fn.c
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/X86_64/Inputs/fn.c?rev=178840&view=auto
==============================================================================
--- lld/trunk/test/elf/X86_64/Inputs/fn.c (added)
+++ lld/trunk/test/elf/X86_64/Inputs/fn.c Thu Apr 4 23:34:57 2013
@@ -0,0 +1,4 @@
+int fn()
+{
+ return 0;
+}
Added: lld/trunk/test/elf/X86_64/Inputs/libfn.so
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/X86_64/Inputs/libfn.so?rev=178840&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lld/trunk/test/elf/X86_64/Inputs/libfn.so
------------------------------------------------------------------------------
svn:executable = *
Propchange: lld/trunk/test/elf/X86_64/Inputs/libfn.so
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lld/trunk/test/elf/X86_64/Inputs/main.c
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/X86_64/Inputs/main.c?rev=178840&view=auto
==============================================================================
--- lld/trunk/test/elf/X86_64/Inputs/main.c (added)
+++ lld/trunk/test/elf/X86_64/Inputs/main.c Thu Apr 4 23:34:57 2013
@@ -0,0 +1,4 @@
+int main() {
+ fn();
+ return 0;
+}
Added: lld/trunk/test/elf/X86_64/Inputs/main.o
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/X86_64/Inputs/main.o?rev=178840&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lld/trunk/test/elf/X86_64/Inputs/main.o
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lld/trunk/test/elf/X86_64/dynlib-search.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/X86_64/dynlib-search.test?rev=178840&view=auto
==============================================================================
--- lld/trunk/test/elf/X86_64/dynlib-search.test (added)
+++ lld/trunk/test/elf/X86_64/dynlib-search.test Thu Apr 4 23:34:57 2013
@@ -0,0 +1,6 @@
+# This tests the functionality for finding the shared library libfn.so for ELF
+RUN: lld -flavor gnu -target x86_64 %p/Inputs/main.o -L%p/Inputs/ -lfn -o %t \
+RUN: --noinhibit-exec -t > %t1
+RUN: FileCheck %s < %t1
+
+CHECK: {{[\/0-9A-Za-z_]+}}libfn.so
More information about the llvm-commits
mailing list