view make/bsd/makefiles/build_vm_def.sh @ 17571:c02077c4b79c

8032536: JVM resolves wrong method in some unusual cases Summary: Handle package private case Reviewed-by: coleenp, acorn, jdn
author hseigel
date Tue, 04 Mar 2014 15:46:33 -0500
parents 91acb82a8b7a
children
line wrap: on
line source

#!/bin/sh

# If we're cross compiling use that path for nm
if [ "$CROSS_COMPILE_ARCH" != "" ]; then 
NM=$ALT_COMPILER_PATH/nm
else
NM=nm
fi

$NM -Uj $* | awk '
   { if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 }
   '