Skip to content

Instantly share code, notes, and snippets.

@lazar-mitrovic
Last active February 28, 2020 16:30
Show Gist options
  • Save lazar-mitrovic/6a5854ebef4fa39c6986e43c98bc3ed3 to your computer and use it in GitHub Desktop.
Save lazar-mitrovic/6a5854ebef4fa39c6986e43c98bc3ed3 to your computer and use it in GitHub Desktop.
Find Symbol in Libraries
#!/bin/bash
# Usage:
# ./fsl symbol_to_find
for f in *.a *.so*; do
search=$(nm -a $f 2>/dev/null | grep "$1")
if [ ! -z "$search" ]
then
echo "Found $1 in $f : $search"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment