From fc2ef3b240403cab969ffe07b02d359e996f6158 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Fri, 1 May 2015 05:01:56 +0000 Subject: [PATCH] Add a -v to tell where each symbol is resolved from. Sponsored by: EMC / Isilon Storage Division --- tools/build/check-links.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/build/check-links.sh b/tools/build/check-links.sh index ba5d58bbfde..57c9437c025 100755 --- a/tools/build/check-links.sh +++ b/tools/build/check-links.sh @@ -20,9 +20,11 @@ libkey() { ret=0 CHECK_UNRESOLVED=1 -while getopts "U" flag; do +VERBOSE_RESOLVED=0 +while getopts "Uv" flag; do case "${flag}" in U) CHECK_UNRESOLVED=0 ;; + v) VERBOSE_RESOLVED=1 ;; esac done shift $((OPTIND-1)) @@ -91,7 +93,12 @@ if [ ${CHECK_UNRESOLVED} -eq 1 ]; then eval "lib_symbols=\"\${${libkey}}\"" # lib_symbols now contains symbols for the lib. case " ${lib_symbols} " in - *\ ${sym}\ *) found=1 && break ;; + *\ ${sym}\ *) + [ ${VERBOSE_RESOLVED} -eq 1 ] && + echo "Resolved symbol ${sym} from ${lib}" + found=1 + break + ;; esac done if [ $found -eq 0 ]; then