view make/solaris/makefiles/build_vm_def.sh @ 6095:9c1709c4c80c

7165598: enable FDS on Solaris X64 when 7165593 is fixed Summary: Work around 'gobjcopy' failure on Solaris X64 by adding a temporary tool that removes the SHF_ALLOC flag from "empty" section headers. Reviewed-by: sspitsyn, acorn
author dcubed
date Thu, 24 May 2012 12:03:42 -0700
parents da0999c4b733
children
line wrap: on
line source

#!/bin/sh

/usr/ccs/bin/nm -p $* \
    | awk '{
          if ($2 == "U") next
          if ($3 ~ /^__1c.*__vtbl_$/ || $3 ~ /^gHotSpotVM/) print "\t" $3 ";"
          if ($3 ~ /^UseSharedSpaces$/) print "\t" $3 ";"
          if ($3 ~ /^__1cJArgumentsRSharedArchivePath_$/) print "\t" $3 ";"
          }' \
    | sort -u