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.
This commit is contained in:
Denis Kasak 2021-07-02 15:26:39 +02:00
parent 583f8b761b
commit 811e56a0f0

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