make/linux/makefiles/build_vm_def.sh

Mon, 05 Nov 2012 19:33:44 -0500

author
dholmes
date
Mon, 05 Nov 2012 19:33:44 -0500
changeset 4243
857f3ce858dd
parent 3150
da0999c4b733
child 6876
710a3c8b516e
permissions
-rw-r--r--

8002034: Allow Full Debug Symbols when cross-compiling
8001756: Hotspot makefiles report missing OBJCOPY command in the wrong circumstances
Reviewed-by: dcubed, dsamersoff, erikj, collins

     1 #!/bin/sh
     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
    10 $NM --defined-only $* \
    11     | awk '{
    12               if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 ";"
    13               if ($3 ~ /^UseSharedSpaces$/) print "\t" $3 ";"
    14               if ($3 ~ /^_ZN9Arguments17SharedArchivePathE$/) print "\t" $3 ";"
    15           }' \
    16     | sort -u

mercurial