1 #!/bin/sh 2 3 # If we're cross compiling use that path for nm 4 if [ "$CROSS_COMPILE_ARCH" != "" ]; then 5 NM=$ALT_COMPILER_PATH/nm 6 else 7 NM=nm 8 fi 9 10 $NM --defined-only $* | awk ' 11 { if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 ";" } 12 '