Add lib_exports.sh for printing list of exported functions.

Prints the list of exported functions from a built library object.
Useful for sanity checking.
classic_import
Denis Kasak 2021-07-02 15:26:39 +02:00
parent 583f8b761b
commit 811e56a0f0
1 changed files with 3 additions and 0 deletions

3
lib_exports.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
# Print public API (ground truth list of functions exported from the built library)
readelf -W --dyn-syms "$(dirname "$0")"/build/libolm.so | grep -v UND | grep olm_ | awk '{ print $8 }' | sort -u