summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-07-23 09:16:24 -0500
committerDan Williams <dcbw@redhat.com>2012-07-23 09:17:04 -0500
commit27f3ebf7085af927750c48f36cbf2184b79bf08e (patch)
treec12ed55e3686f02180da185c0335c837d84d4bc2 /tools
parent07db961a6ae074787dc763f5ed829cb0d585adaa (diff)
tools: simplify symbol visiblity check script
Using nm is way simpler, and actually less error-prone.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check-exports.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check-exports.sh b/tools/check-exports.sh
index 3c75ef02..b5a9e952 100755
--- a/tools/check-exports.sh
+++ b/tools/check-exports.sh
@@ -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