aoqi@0: #!/bin/sh aoqi@0: aoqi@0: # If we're cross compiling use that path for nm aoqi@0: if [ "$CROSS_COMPILE_ARCH" != "" ]; then aoqi@0: NM=$ALT_COMPILER_PATH/nm aoqi@0: else aoqi@0: # On AIX we have to prevent that we pick up the 'nm' version from the GNU binutils aoqi@0: # which may be installed under /opt/freeware/bin. So better use an absolute path here! aoqi@0: NM=/usr/bin/nm aoqi@0: fi aoqi@0: aoqi@0: $NM -X64 -B -C $* \ aoqi@0: | awk '{ aoqi@0: if (($2="d" || $2="D") && ($3 ~ /^__vft/ || $3 ~ /^gHotSpotVM/)) print "\t" $3 ";" aoqi@0: if ($3 ~ /^UseSharedSpaces$/) print "\t" $3 ";" aoqi@0: if ($3 ~ /^SharedArchivePath__9Arguments$/) print "\t" $3 ";" aoqi@0: }' \ aoqi@0: | sort -u