service agent debug compile flags on windows

Alex Kasko mail at alexkasko.com
Sun Dec 8 06:21:13 PST 2013


Hi,

I am trying to build latest jdk6 [1] on windows-i586 using MSVS2003. 
Initially I was unable to do it after SAFESEH flag was enabled in 
hotspot/make/windows/makefiles/sa.make [2], I got LNK2026 error on 
linking sawindbg.dll [3].

I was able to link it successfully changing compile flag for 
sawindbg.cpp from "ZI" to "Zi" [4] (flags reference [5]).

I would appreciate if someone could tell me about negative impact on 
Service Agent abilities this change may bring (if any). I read about 
Edit and Continue debug features [6], but my knowledge here (and in 
win32 in general) is limited to MSDN/StackOverflow topics.

If this is security-sensitive topic (it breaks after SAFESEH flag) I 
would appreciate off-list help.

Thanks.


[1] 
http://mail.openjdk.java.net/pipermail/jdk6-dev/2013-December/003157.html
[2] 
http://cr.openjdk.java.net/~andrew/openjdk6/20131015/hotspot/make/windows/makefiles/sa.make.udiff.html
[3] 
http://cr.openjdk.java.net/~akasko/jdk6/hotspot_sawindbg_safeseh_error.txt
[4] 
http://cr.openjdk.java.net/~akasko/jdk6/webrev_remove_sa_edit_and_continue.00/make/windows/makefiles/sa.make.udiff.html
[5] http://msdn.microsoft.com/en-us/library/958x11bc%28v=vs.71%29.aspx
[6] http://msdn.microsoft.com/en-us/library/bcew296c%28v=vs.71%29.aspx

-- 
Regards,
Alex Kasko

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3742 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131208/bc434d06/smime.p7s 


More information about the serviceability-dev mailing list