diff options
author | Dan Williams <dcbw@redhat.com> | 2012-07-23 09:16:24 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-07-23 09:17:04 -0500 |
commit | 27f3ebf7085af927750c48f36cbf2184b79bf08e (patch) | |
tree | c12ed55e3686f02180da185c0335c837d84d4bc2 /tools | |
parent | 07db961a6ae074787dc763f5ed829cb0d585adaa (diff) | |
download | NetworkManager-27f3ebf7085af927750c48f36cbf2184b79bf08e.tar.gz |
tools: simplify symbol visiblity check script
Using nm is way simpler, and actually less error-prone.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/check-exports.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check-exports.sh b/tools/check-exports.sh index 3c75ef024f..b5a9e952b5 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 |