hotspot/make/linux/makefiles/vm.make
changeset 28725 7dc31f3b4939
parent 26851 f64f39a7ec7c
child 28729 062f02fa1d17
equal deleted inserted replaced
28724:b228beabcf1f 28725:7dc31f3b4939
     1 #
     1 #
     2 # Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.
     7 # published by the Free Software Foundation.
   237 
   237 
   238 mapfile_reorder : mapfile $(REORDERFILE)
   238 mapfile_reorder : mapfile $(REORDERFILE)
   239 	rm -f $@
   239 	rm -f $@
   240 	cat $^ > $@
   240 	cat $^ > $@
   241 
   241 
       
   242 VMDEF_PAT  = ^_ZTV
       
   243 VMDEF_PAT := ^gHotSpotVM|$(VMDEF_PAT)
       
   244 VMDEF_PAT := ^UseSharedSpaces$$|$(VMDEF_PAT)
       
   245 VMDEF_PAT := ^_ZN9Arguments17SharedArchivePathE$$|$(VMDEF_PAT)
       
   246 
   242 vm.def: $(Res_Files) $(Obj_Files)
   247 vm.def: $(Res_Files) $(Obj_Files)
   243 	sh $(GAMMADIR)/make/linux/makefiles/build_vm_def.sh *.o > $@
   248 	$(QUIETLY) $(NM) --defined-only $(Obj_Files) | sort -k3 -u | \
       
   249 	awk '$$3 ~ /$(VMDEF_PAT)/ { print "\t" $$3 ";" }' > $@
   244 
   250 
   245 mapfile_ext:
   251 mapfile_ext:
   246 	rm -f $@
   252 	rm -f $@
   247 	touch $@
   253 	touch $@
   248 	if [ -f $(HS_ALT_MAKE)/linux/makefiles/mapfile-ext ]; then \
   254 	if [ -f $(HS_ALT_MAKE)/linux/makefiles/mapfile-ext ]; then \