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

Split Split Close
Expand all
Collapse all
          --- old/hotspot/make/windows/makefiles/sa.make
          +++ new/hotspot/make/windows/makefiles/sa.make
↓ open down ↓ 103 lines elided ↑ open up ↑
 104  104  !endif
 105  105  
 106  106  SASRCFILES = $(AGENT_DIR)/src/os/win32/windbg/sawindbg.cpp \
 107  107                  $(AGENT_DIR)/src/share/native/sadis.c
 108  108                              
 109  109  SA_LFLAGS = $(SA_LD_FLAGS) -nologo -subsystem:console -machine:$(MACHINE)
 110  110  !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
 111  111  SA_LFLAGS = $(SA_LFLAGS) -map -debug
 112  112  !endif
 113  113  !if "$(BUILDARCH)" == "i486"
 114      -SA_LFLAGS = $(SAFESEH_FLAG) $(SA_LFLAGS)
      114 +SA_LFLAGS = /SAFESEH $(SA_LFLAGS)
 115  115  !endif
 116  116  
 117  117  SA_CFLAGS = $(SA_CFLAGS) $(MP_FLAG)
 118  118  
 119  119  # Note that we do not keep sawindbj.obj around as it would then
 120  120  # get included in the dumpbin command in build_vm_def.sh
 121  121  
 122  122  # In VS2005 or VS2008 the link command creates a .manifest file that we want
 123  123  # to insert into the linked artifact so we do not need to track it separately.
 124  124  # Use ";#2" for .dll and ";#1" for .exe in the MT command below:
↓ open down ↓ 25 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX