summary refs log tree commit diff
path: root/elf/ldd.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'elf/ldd.sh.in')
-rw-r--r--elf/ldd.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/ldd.sh.in b/elf/ldd.sh.in
index 82946fd535..78fda69d22 100644
--- a/elf/ldd.sh.in
+++ b/elf/ldd.sh.in
@@ -18,7 +18,7 @@ case $# in
   *) file="./$1" ;;
   esac
   if ${RTLD} --verify "$file"; then
-    LD_TRACE_LOADED_OBJECTS=1 exec "$file" && exit 1
+    LD_TRACE_LOADED_OBJECTS=1 exec ${RTLD} "$file" && exit 1
   else
     echo '	not a dynamic executable'
   fi
@@ -32,7 +32,7 @@ case $# in
     *) file="./$file" ;;
     esac
     if ${RTLD} --verify "$file"; then
-      LD_TRACE_LOADED_OBJECTS=1 "$file"
+      LD_TRACE_LOADED_OBJECTS=1 ${RTLD} "$file"
     else
       echo '	not a dynamic executable'
     fi