1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/make/linux/makefiles/build_vm_def.sh Wed Apr 27 01:25:04 2016 +0800 1.3 @@ -0,0 +1,16 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +# If we're cross compiling use that path for nm 1.7 +if [ "$CROSS_COMPILE_ARCH" != "" ]; then 1.8 +NM=$ALT_COMPILER_PATH/nm 1.9 +else 1.10 +NM=nm 1.11 +fi 1.12 + 1.13 +$NM --defined-only $* \ 1.14 + | awk '{ 1.15 + if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 ";" 1.16 + if ($3 ~ /^UseSharedSpaces$/) print "\t" $3 ";" 1.17 + if ($3 ~ /^_ZN9Arguments17SharedArchivePathE$/) print "\t" $3 ";" 1.18 + }' \ 1.19 + | sort -u