tools: simplify symbol visiblity check script

Using nm is way simpler, and actually less error-prone.
This commit is contained in:
Dan Williams 2012-07-23 09:16:24 -05:00
parent 07db961a6a
commit 27f3ebf708

View file

@ -8,7 +8,7 @@ so=$1
def=$2
# Have to prefix with a tab and suffix with a ';' to match .ver file format
get_syms='( objdump -t "$so" | grep "^[^ ]* [^l.*]*[.]"; objdump -t "$so" | grep "^[^ ]* l[^.*]*\.text[^_]*nm_" | grep -v "_init"; ) | sed "s/.* //" | sed "s/^/\t/" | sed "s/$/;/"'
get_syms='nm "$so" | grep "^[[:xdigit:]]\+ T " | sed "s/^[[:xdigit:]]\+ T //" | sed "s/^/\t/" | sed "s/$/;/"'
echo $so: checking exported symbols against $def