< prev index next >

hotspot/make/windows/makefiles/sa.make

Print this page
rev 6897 : 8059131: sawindbg.dll is not compiled with /SAFESEH
Summary: Make variable SAFESEH_FLAG replaced with /SAFESEH link option.
Reviewed-by: mgronlun, sla


  94 SA_LD_FLAGS = bufferoverflowU.lib
  95 !endif
  96 !else
  97 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 -Gm $(GX_OPTION) -Od -D "WIN32" -D "_WINDOWS" -D "_DEBUG" -D "_CONSOLE" -D "_MBCS" -YX -FD -GZ -c
  98 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
  99 SA_CFLAGS = $(SA_CFLAGS) -ZI
 100 !endif
 101 !endif
 102 !if "$(MT)" != ""
 103 SA_LD_FLAGS = -manifest $(SA_LD_FLAGS)
 104 !endif
 105 
 106 SASRCFILES = $(AGENT_DIR)/src/os/win32/windbg/sawindbg.cpp \
 107                 $(AGENT_DIR)/src/share/native/sadis.c
 108                             
 109 SA_LFLAGS = $(SA_LD_FLAGS) -nologo -subsystem:console -machine:$(MACHINE)
 110 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
 111 SA_LFLAGS = $(SA_LFLAGS) -map -debug
 112 !endif
 113 !if "$(BUILDARCH)" == "i486"
 114 SA_LFLAGS = $(SAFESEH_FLAG) $(SA_LFLAGS)
 115 !endif
 116 
 117 SA_CFLAGS = $(SA_CFLAGS) $(MP_FLAG)
 118 
 119 # Note that we do not keep sawindbj.obj around as it would then
 120 # get included in the dumpbin command in build_vm_def.sh
 121 
 122 # In VS2005 or VS2008 the link command creates a .manifest file that we want
 123 # to insert into the linked artifact so we do not need to track it separately.
 124 # Use ";#2" for .dll and ";#1" for .exe in the MT command below:
 125 $(SAWINDBG): $(SASRCFILES)
 126         set INCLUDE=$(SA_INCLUDE)$(INCLUDE)
 127         $(CXX) @<<
 128           -I"$(BootStrapDir)/include" -I"$(BootStrapDir)/include/win32" 
 129           -I"$(GENERATED)" $(SA_CFLAGS)
 130           $(SASRCFILES)
 131           -out:$*.obj
 132 <<
 133         set LIB=$(SA_LIB)$(LIB)
 134         $(LD) -out:$@ -DLL sawindbg.obj sadis.obj dbgeng.lib $(SA_LFLAGS)


  94 SA_LD_FLAGS = bufferoverflowU.lib
  95 !endif
  96 !else
  97 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 -Gm $(GX_OPTION) -Od -D "WIN32" -D "_WINDOWS" -D "_DEBUG" -D "_CONSOLE" -D "_MBCS" -YX -FD -GZ -c
  98 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
  99 SA_CFLAGS = $(SA_CFLAGS) -ZI
 100 !endif
 101 !endif
 102 !if "$(MT)" != ""
 103 SA_LD_FLAGS = -manifest $(SA_LD_FLAGS)
 104 !endif
 105 
 106 SASRCFILES = $(AGENT_DIR)/src/os/win32/windbg/sawindbg.cpp \
 107                 $(AGENT_DIR)/src/share/native/sadis.c
 108                             
 109 SA_LFLAGS = $(SA_LD_FLAGS) -nologo -subsystem:console -machine:$(MACHINE)
 110 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
 111 SA_LFLAGS = $(SA_LFLAGS) -map -debug
 112 !endif
 113 !if "$(BUILDARCH)" == "i486"
 114 SA_LFLAGS = /SAFESEH $(SA_LFLAGS)
 115 !endif
 116 
 117 SA_CFLAGS = $(SA_CFLAGS) $(MP_FLAG)
 118 
 119 # Note that we do not keep sawindbj.obj around as it would then
 120 # get included in the dumpbin command in build_vm_def.sh
 121 
 122 # In VS2005 or VS2008 the link command creates a .manifest file that we want
 123 # to insert into the linked artifact so we do not need to track it separately.
 124 # Use ";#2" for .dll and ";#1" for .exe in the MT command below:
 125 $(SAWINDBG): $(SASRCFILES)
 126         set INCLUDE=$(SA_INCLUDE)$(INCLUDE)
 127         $(CXX) @<<
 128           -I"$(BootStrapDir)/include" -I"$(BootStrapDir)/include/win32" 
 129           -I"$(GENERATED)" $(SA_CFLAGS)
 130           $(SASRCFILES)
 131           -out:$*.obj
 132 <<
 133         set LIB=$(SA_LIB)$(LIB)
 134         $(LD) -out:$@ -DLL sawindbg.obj sadis.obj dbgeng.lib $(SA_LFLAGS)
< prev index next >