diff options
| -rw-r--r-- | lld/test/elf/X86_64/Inputs/fn.c | 4 | ||||
| -rwxr-xr-x | lld/test/elf/X86_64/Inputs/libfn.so | bin | 0 -> 2008 bytes | |||
| -rw-r--r-- | lld/test/elf/X86_64/Inputs/main.c | 4 | ||||
| -rw-r--r-- | lld/test/elf/X86_64/Inputs/main.o | bin | 0 -> 1360 bytes | |||
| -rw-r--r-- | lld/test/elf/X86_64/dynlib-search.test | 6 |
5 files changed, 14 insertions, 0 deletions
diff --git a/lld/test/elf/X86_64/Inputs/fn.c b/lld/test/elf/X86_64/Inputs/fn.c new file mode 100644 index 00000000000..54939a2426b --- /dev/null +++ b/lld/test/elf/X86_64/Inputs/fn.c @@ -0,0 +1,4 @@ +int fn() +{ + return 0; +} diff --git a/lld/test/elf/X86_64/Inputs/libfn.so b/lld/test/elf/X86_64/Inputs/libfn.so Binary files differnew file mode 100755 index 00000000000..dc02480aa69 --- /dev/null +++ b/lld/test/elf/X86_64/Inputs/libfn.so diff --git a/lld/test/elf/X86_64/Inputs/main.c b/lld/test/elf/X86_64/Inputs/main.c new file mode 100644 index 00000000000..0280c912707 --- /dev/null +++ b/lld/test/elf/X86_64/Inputs/main.c @@ -0,0 +1,4 @@ +int main() { + fn(); + return 0; +} diff --git a/lld/test/elf/X86_64/Inputs/main.o b/lld/test/elf/X86_64/Inputs/main.o Binary files differnew file mode 100644 index 00000000000..ec8929f4b51 --- /dev/null +++ b/lld/test/elf/X86_64/Inputs/main.o diff --git a/lld/test/elf/X86_64/dynlib-search.test b/lld/test/elf/X86_64/dynlib-search.test new file mode 100644 index 00000000000..af9c6cc68f9 --- /dev/null +++ b/lld/test/elf/X86_64/dynlib-search.test @@ -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 |

