make/aix/makefiles/build_vm_def.sh

changeset 6464
b83f7d608548
parent 0
f90c822e73f8
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/make/aix/makefiles/build_vm_def.sh	Fri Sep 06 20:08:29 2013 +0200
     1.3 @@ -0,0 +1,18 @@
     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 +# On AIX we have to prevent that we pick up the 'nm' version from the GNU binutils
    1.11 +# which may be installed under /opt/freeware/bin. So better use an absolute path here! 
    1.12 +NM=/usr/bin/nm
    1.13 +fi
    1.14 +
    1.15 +$NM -X64 -B -C $* \
    1.16 +    | awk '{
    1.17 +              if (($2="d" || $2="D") && ($3 ~ /^__vft/ || $3 ~ /^gHotSpotVM/)) print "\t" $3 ";"
    1.18 +              if ($3 ~ /^UseSharedSpaces$/) print "\t" $3 ";"
    1.19 +              if ($3 ~ /^SharedArchivePath__9Arguments$/) print "\t" $3 ";"
    1.20 +          }' \
    1.21 +    | sort -u

mercurial