aboutsummaryrefslogtreecommitdiff
path: root/dependencies/analyses/nm-symbols-analysis.sh
blob: 361b746e4e41ab6de6d47649b4f34e08b093e718 (plain)
1
2
3
4
5
6
7
8
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}'