tools: export more symbols from NetworkManager binary to plugins

Plugins also may use nmtst_*() functions (when built with --with-more-asserts)
or c_list_*(). Whitelist them too.
This commit is contained in:
Thomas Haller 2019-06-24 16:16:42 +02:00
parent e36cf1e890
commit 7b6f1c2d90

View file

@ -61,7 +61,7 @@ get_symbols_missing() {
./src/devices/*/${libs} \
./src/ppp/${libs} -name '*.so' 2>/dev/null); do
call_nm "$f" |
sed -n 's/^\([U]\) \(\(nm_\|nmp_\|_nm\|NM\|_NM\|c_siphash_\).*\)$/\2/p'
sed -n 's/^\([U]\) \(\(nm_\|nmp_\|_nm\|NM\|_NM\|nmtst_\|c_siphash_\|c_list_\).*\)$/\2/p'
done) |
_sort |
grep -Fx -f <(get_symbols_explict) -v |