mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 14:10:23 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue