1996-11-22 06:16:00 +08:00
|
|
|
#!/bin/sh
|
1996-11-22 05:58:50 +08:00
|
|
|
|
|
|
|
# note this works for both a.out and ELF executables
|
|
|
|
|
1996-11-22 06:06:06 +08:00
|
|
|
ulimit -c 0
|
|
|
|
|
1997-03-20 23:55:31 +08:00
|
|
|
filelist=`sed "s/['\"]/\\\&/g" | xargs -r file | fgrep executable | cut -d: -f1 `
|
1996-11-22 05:58:50 +08:00
|
|
|
|
|
|
|
for f in $filelist; do
|
1996-11-22 06:16:00 +08:00
|
|
|
ldd $f | awk '/=>/ { print $1 }'
|
1997-03-04 10:08:21 +08:00
|
|
|
done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | sort -u
|
1996-11-22 06:16:00 +08:00
|
|
|
|