build_vm_def.sh 421 字节
Newer Older
1 2
#!/bin/sh

3
# If we're cross compiling use that path for nm
4
if [ "$CROSS_COMPILE_ARCH" != "" ]; then 
5 6 7 8 9
NM=$ALT_COMPILER_PATH/nm
else
NM=nm
fi

10 11 12 13 14 15 16
$NM --defined-only $* \
    | awk '{
              if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 ";"
              if ($3 ~ /^UseSharedSpaces$/) print "\t" $3 ";"
              if ($3 ~ /^_ZN9Arguments17SharedArchivePathE$/) print "\t" $3 ";"
          }' \
    | sort -u