-
-
Save lazar-mitrovic/6a5854ebef4fa39c6986e43c98bc3ed3 to your computer and use it in GitHub Desktop.
Find Symbol in Libraries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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