From 811e56a0f07d672cac775766ea5fb42e9845d61b Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Fri, 2 Jul 2021 15:26:39 +0200 Subject: [PATCH] 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. --- lib_exports.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 lib_exports.sh diff --git a/lib_exports.sh b/lib_exports.sh new file mode 100755 index 0000000..3140c79 --- /dev/null +++ b/lib_exports.sh @@ -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