mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
6fd4861d9d
I use this all the time, so I thought I'd put it in the tree for others
16 lines
252 B
Bash
Executable File
16 lines
252 B
Bash
Executable File
#!/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
|