slitaz-base-files annotate rootfs/usr/bin/ldd @ rev 343
fix ipinfo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 04 14:28:55 2020 +0000 (2020-10-04) |
parents | 95bb4b133a7b |
children |
rev | line source |
---|---|
pankso@71 | 1 #!/bin/sh |
pankso@71 | 2 # |
pankso@72 | 3 # Tiny ldd fake. |
pascal@319 | 4 # Copyright (C) 2010-2017 SliTaz GNU/Linux. |
pankso@71 | 5 # |
pascal@291 | 6 echo |
erjo@79 | 7 file="$@" |
erjo@79 | 8 for file do |
pascal@297 | 9 file="$(which "$file")" |
al@323 | 10 [ ! -f "$file" ] && exit |
pascal@319 | 11 ld="$(sed '/\/lib.*\/ld/!dq' "$file")" |
pascal@297 | 12 echo "$file" | sed 's%^./%%;s%$%:%' |
al@323 | 13 LD_TRACE_LOADED_OBJECTS=1 "$(realpath ${ld:-/lib/ld-linux*})" "$file" 2>/dev/null |
pascal@291 | 14 echo |
erjo@79 | 15 done |