mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 12:34:55 +00:00
tools: simplify symbol visiblity check script
Using nm is way simpler, and actually less error-prone.
This commit is contained in:
parent
07db961a6a
commit
27f3ebf708
|
@ -8,7 +8,7 @@ so=$1
|
||||||
def=$2
|
def=$2
|
||||||
|
|
||||||
# Have to prefix with a tab and suffix with a ';' to match .ver file format
|
# 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
|
echo $so: checking exported symbols against $def
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue