# makemap -- make a symbol map without files and with the statics sorted

if [ ! -f "$1" ]
then
	echo "$0: can not find \"$1\""
	echo "usage: makemap binary_name"
	exit
fi

nm -xv $1 | grep -v ' file |' | sort -t'|' +1 -2 +0 > $1.map
