Clean up noise from eu-readelf

This commit is contained in:
Jeremy Katz 2009-01-05 15:42:56 -05:00
parent aabc0553b5
commit 6eedcafc37

View File

@ -36,7 +36,7 @@ function get_dso_deps() {
declare -a FILES
declare -a NAMES
local LDSO=$(LANG=C eu-readelf -l $bin |grep interpreter |awk {'print $4;'} |sed -e 's/]$//')
local LDSO=$(LANG=C eu-readelf -l $bin 2>/dev/null |grep interpreter |awk {'print $4;'} |sed -e 's/]$//')
[ -z "$LDSO" -o "$LDSO" == "$bin" ] && local LDSO="$IF_RTLD"
[ -z "$LDSO" -o "$LDSO" == "$bin" ] && return 1
[ -z "$IF_RTLD" ] && IF_RTLD="$LDSO"