1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s4-devel: a very useful script when dealing with library/linking issues

I use this all the time, so I thought I'd put it in the tree for
others
This commit is contained in:
Andrew Tridgell 2010-05-07 13:47:37 +02:00
parent 022266566d
commit 6fd4861d9d

15
source4/scripting/devel/nmfind Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
# find object files containing a symbol
# for example:
# nmfind foo_function $(find bin/default -name '*.o')
TARGET=$1
shift
for f in $*; do
if nm $f 2>&1 | grep $TARGET > /dev/null; then
echo [$f]
nm $f | grep $TARGET
echo
fi
done