summaryrefslogtreecommitdiff
path: root/dependencies/analyses/nm-symbols-analysis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dependencies/analyses/nm-symbols-analysis.sh')
-rwxr-xr-xdependencies/analyses/nm-symbols-analysis.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/dependencies/analyses/nm-symbols-analysis.sh b/dependencies/analyses/nm-symbols-analysis.sh
new file mode 100755
index 000000000..361b746e4
--- /dev/null
+++ b/dependencies/analyses/nm-symbols-analysis.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/bash
+
+if test "$#" -ne 1; then
+ echo "invalid arguments: usage: $0 path/to/binary"
+ exit 1
+fi
+
+go tool nm -size "$1" \
+ | awk 'NF==4 && $3=="t" {printf "%s\t\t%s\n", $2, $4}'