| # This tests the functionality of specifying dynamic-linker argument in the |
| # command line |
| RUN: lld -flavor gnu -target x86_64 --dynamic-linker="/xyz.so" \ |
| RUN: %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t |
| RUN: llvm-objdump -s %t | FileCheck -check-prefix=DYNAMICINTERP1 %s |
| RUN: lld -flavor gnu -target x86_64 --dynamic-linker="" \ |
| RUN: %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t1 |
| RUN: llvm-objdump -s %t1 | FileCheck -check-prefix=DYNAMICINTERP2 %s |
| RUN: lld -flavor gnu -target x86_64 -dynamic-linker /xyz.so \ |
| RUN: %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t2 |
| RUN: llvm-objdump -s %t2 | FileCheck -check-prefix=DYNAMICINTERP1 %s |
| |
| DYNAMICINTERP1:Contents of section .interp: |
| DYNAMICINTERP1: 400158 2f78797a 2e736f00 /xyz.so. |
| DYNAMICINTERP2:Contents of section .interp: |
| DYNAMICINTERP2: 400158 00 |
| |