2013-05-30 06:51:01 +08:00
|
|
|
# This tests the functionality of specifying dynamic-linker argument in the
|
2014-01-27 11:09:26 +08:00
|
|
|
# command line
|
2013-11-02 11:55:51 +08:00
|
|
|
RUN: lld -flavor gnu -target x86_64 --dynamic-linker="/xyz.so" \
|
|
|
|
RUN: %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t
|
2013-05-30 06:51:01 +08:00
|
|
|
RUN: llvm-objdump -s %t | FileCheck -check-prefix=DYNAMICINTERP1 %s
|
2013-11-02 11:55:51 +08:00
|
|
|
RUN: lld -flavor gnu -target x86_64 --dynamic-linker="" \
|
|
|
|
RUN: %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t1
|
2013-05-30 06:51:01 +08:00
|
|
|
RUN: llvm-objdump -s %t1 | FileCheck -check-prefix=DYNAMICINTERP2 %s
|
2013-11-02 11:55:51 +08:00
|
|
|
RUN: lld -flavor gnu -target x86_64 -dynamic-linker /xyz.so \
|
|
|
|
RUN: %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t2
|
2013-05-30 06:51:01 +08:00
|
|
|
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
|
|
|
|
|