git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0222665
)
s4-devel: a very useful script when dealing with library/linking issues
author
Andrew Tridgell
<tridge@samba.org>
Fri, 7 May 2010 11:47:37 +0000
(13:47 +0200)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 7 May 2010 13:14:49 +0000
(15:14 +0200)
I use this all the time, so I thought I'd put it in the tree for
others
source4/scripting/devel/nmfind
[new file with mode: 0755]
patch
|
blob
diff --git a/source4/scripting/devel/nmfind
b/source4/scripting/devel/nmfind
new file mode 100755
(executable)
index 0000000..
54935f2
--- /dev/null
+++ b/
source4/scripting/devel/nmfind
@@ -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