mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 04:46:27 +08:00
[ELF][test] add dynamic library search
llvm-svn: 178840
This commit is contained in:
4
lld/test/elf/X86_64/Inputs/fn.c
Normal file
4
lld/test/elf/X86_64/Inputs/fn.c
Normal file
@@ -0,0 +1,4 @@
|
||||
int fn()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
BIN
lld/test/elf/X86_64/Inputs/libfn.so
Executable file
BIN
lld/test/elf/X86_64/Inputs/libfn.so
Executable file
Binary file not shown.
4
lld/test/elf/X86_64/Inputs/main.c
Normal file
4
lld/test/elf/X86_64/Inputs/main.c
Normal file
@@ -0,0 +1,4 @@
|
||||
int main() {
|
||||
fn();
|
||||
return 0;
|
||||
}
|
||||
BIN
lld/test/elf/X86_64/Inputs/main.o
Normal file
BIN
lld/test/elf/X86_64/Inputs/main.o
Normal file
Binary file not shown.
6
lld/test/elf/X86_64/dynlib-search.test
Normal file
6
lld/test/elf/X86_64/dynlib-search.test
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user