United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7017110 Add /SAFESEH to links on windows 32bit to verify safe exceptions
JDK-7017110 : Add /SAFESEH to links on windows 32bit to verify safe exceptions

Details
Type:
Bug
Submit Date:
2011-02-03
Status:
Closed
Updated Date:
2012-05-02
Project Name:
JDK
Resolved Date:
2011-04-24
Component:
hotspot
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs21 (b04)

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
This should be easy to do, and hopefully won't make any difference to the build but is important to get into place.

Just on Windows 32bit, and only when linking anything with VS2010, we need to make sure the link time option /SAFESEH is supplied to guarantee safe exception handlers.

See the 7010594 bug for the jdk part of this.

                                    

Comments
EVALUATION

Since VS2003, SAFESEH is on by default. We are adding SAFESEH here just to ensure the safe exception tables are generated, fail if it can not.

Following is the comment from Kelly:

Adding the flag makes sure that safe exception tables are always generated, failing the link IF the exception
tables are not safe.  Default behavior does not fail the build when they are unsafe, just leaves them out.

So all we are doing is insuring a build failure when they are not safe.
Should not really change anything.

-kto
                                     
2011-02-28
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/99bd05619fa4
                                     
2011-03-03
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/99bd05619fa4
                                     
2011-03-04
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/99bd05619fa4
                                     
2011-03-04



Hardware and Software, Engineered to Work Together