https://bugs.winehq.org/show_bug.cgi?id=38895
--- Comment #9 from Erich E. Hoover erich.e.hoover@wine-staging.com --- (In reply to Anastasius Focht from comment #6)
... Erich's patch hides the real problem by keeping the default init value present in in PE compiled with /GS. ...
Hmm, my test FIXME apparently was bad (looked like it hit my test case for some reason).
(In reply to Anastasius Focht from comment #6)
... This code snippet gives some hints (not perfect but to illustrate): https://github.com/DynamoRIO/dynamorio/blob/master/core/win32/loader.c#L1924
What is the license on that code? Is this something I can look at?