xref: /AOO41X/main/python/python-2.7.18-msvs9.patch (revision df26b2344d5dde90a7be84c4b8029bbf6a73a2f1)
1diff -urp misc/Python-2.7.18/PC/VS9.0/_bsddb.vcproj misc/build/Python-2.7.18/PC/VS9.0/_bsddb.vcproj
2--- misc/Python-2.7.18/PC/VS9.0/_bsddb.vcproj   2017-09-16 12:38:35.000000000 -0500
3+++ misc/build/Python-2.7.18/PC/VS9.0/_bsddb.vcproj 2017-10-21 17:56:40.218589000 -0500
4@@ -56,6 +56,7 @@
5            />
6            <Tool
7                Name="VCLinkerTool"
8+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
9                AdditionalDependencies="$(bsddbDepLibs)"
10                BaseAddress="0x1e180000"
11            />
12@@ -120,6 +121,7 @@
13            />
14            <Tool
15                Name="VCLinkerTool"
16+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
17                AdditionalDependencies="$(bsddbDepLibs)"
18                BaseAddress="0x1e180000"
19            />
20@@ -183,6 +185,7 @@
21            />
22            <Tool
23                Name="VCLinkerTool"
24+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
25                AdditionalDependencies="$(bsddbDepLibs)"
26                BaseAddress="0x1e180000"
27            />
28@@ -248,6 +251,7 @@
29            />
30            <Tool
31                Name="VCLinkerTool"
32+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
33                AdditionalDependencies="$(bsddbDepLibs)"
34                BaseAddress="0x1e180000"
35            />
36@@ -311,6 +315,7 @@
37            />
38            <Tool
39                Name="VCLinkerTool"
40+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
41                AdditionalDependencies="$(bsddbDepLibs)"
42                BaseAddress="0x1e180000"
43            />
44@@ -375,6 +380,7 @@
45            />
46            <Tool
47                Name="VCLinkerTool"
48+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
49                AdditionalDependencies="$(bsddbDepLibs)"
50                BaseAddress="0x1e180000"
51                TargetMachine="17"
52@@ -439,6 +445,7 @@
53            />
54            <Tool
55                Name="VCLinkerTool"
56+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
57                AdditionalDependencies="$(bsddbDepLibs)"
58                BaseAddress="0x1e180000"
59            />
60@@ -503,6 +510,7 @@
61            />
62            <Tool
63                Name="VCLinkerTool"
64+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
65                AdditionalDependencies="$(bsddbDepLibs)"
66                BaseAddress="0x1e180000"
67                TargetMachine="17"
68diff -urp misc/Python-2.7.18/PC/VS9.0/_ctypes.vcproj misc/build/Python-2.7.18/PC/VS9.0/_ctypes.vcproj
69--- misc/Python-2.7.18/PC/VS9.0/_ctypes.vcproj  2017-09-16 12:38:35.000000000 -0500
70+++ misc/build/Python-2.7.18/PC/VS9.0/_ctypes.vcproj    2017-10-21 17:56:40.219465000 -0500
71@@ -177,7 +177,7 @@
72            />
73            <Tool
74                Name="VCLinkerTool"
75-               AdditionalOptions="/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
76+               AdditionalOptions="/SAFESEH /DYNAMICBASE /NXCOMPAT /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
77                SubSystem="0"
78                BaseAddress="0x1D1A0000"
79            />
80@@ -241,7 +241,7 @@
81            />
82            <Tool
83                Name="VCLinkerTool"
84-               AdditionalOptions="/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
85+               AdditionalOptions="/SAFESEH /DYNAMICBASE /NXCOMPAT /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
86                SubSystem="0"
87                BaseAddress="0x1D1A0000"
88            />
89@@ -304,7 +304,7 @@
90            />
91            <Tool
92                Name="VCLinkerTool"
93-               AdditionalOptions="/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
94+               AdditionalOptions="/SAFESEH /DYNAMICBASE /NXCOMPAT /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
95                SubSystem="0"
96                BaseAddress="0x1D1A0000"
97            />
98@@ -368,7 +368,7 @@
99            />
100            <Tool
101                Name="VCLinkerTool"
102-               AdditionalOptions="/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
103+               AdditionalOptions="/SAFESEH /DYNAMICBASE /NXCOMPAT /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
104                SubSystem="0"
105                BaseAddress="0x1D1A0000"
106                TargetMachine="17"
107@@ -432,7 +432,7 @@
108            />
109            <Tool
110                Name="VCLinkerTool"
111-               AdditionalOptions="/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
112+               AdditionalOptions="/SAFESEH /DYNAMICBASE /NXCOMPAT /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
113                SubSystem="0"
114                BaseAddress="0x1D1A0000"
115            />
116@@ -496,7 +496,7 @@
117            />
118            <Tool
119                Name="VCLinkerTool"
120-               AdditionalOptions="/EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
121+               AdditionalOptions="/SAFESEH /DYNAMICBASE /NXCOMPAT /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllCanUnloadNow,PRIVATE"
122                SubSystem="0"
123                BaseAddress="0x1D1A0000"
124                TargetMachine="17"
125diff -urp misc/Python-2.7.18/PC/VS9.0/_ctypes_test.vcproj misc/build/Python-2.7.18/PC/VS9.0/_ctypes_test.vcproj
126--- misc/Python-2.7.18/PC/VS9.0/_ctypes_test.vcproj 2017-09-16 12:38:35.000000000 -0500
127+++ misc/build/Python-2.7.18/PC/VS9.0/_ctypes_test.vcproj   2017-10-21 17:56:40.220226000 -0500
128@@ -54,6 +54,7 @@
129            />
130            <Tool
131                Name="VCLinkerTool"
132+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
133            />
134            <Tool
135                Name="VCALinkTool"
136@@ -113,6 +114,7 @@
137            />
138            <Tool
139                Name="VCLinkerTool"
140+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
141            />
142            <Tool
143                Name="VCALinkTool"
144@@ -172,6 +174,7 @@
145            />
146            <Tool
147                Name="VCLinkerTool"
148+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
149            />
150            <Tool
151                Name="VCALinkTool"
152@@ -232,6 +235,7 @@
153            />
154            <Tool
155                Name="VCLinkerTool"
156+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
157            />
158            <Tool
159                Name="VCALinkTool"
160@@ -291,6 +295,7 @@
161            />
162            <Tool
163                Name="VCLinkerTool"
164+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
165            />
166            <Tool
167                Name="VCALinkTool"
168@@ -352,6 +357,7 @@
169            <Tool
170                Name="VCLinkerTool"
171                TargetMachine="17"
172+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
173            />
174            <Tool
175                Name="VCALinkTool"
176@@ -411,6 +417,7 @@
177            />
178            <Tool
179                Name="VCLinkerTool"
180+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
181            />
182            <Tool
183                Name="VCALinkTool"
184@@ -472,6 +479,7 @@
185            <Tool
186                Name="VCLinkerTool"
187                TargetMachine="17"
188+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
189            />
190            <Tool
191                Name="VCALinkTool"
192diff -urp misc/Python-2.7.18/PC/VS9.0/_elementtree.vcproj misc/build/Python-2.7.18/PC/VS9.0/_elementtree.vcproj
193--- misc/Python-2.7.18/PC/VS9.0/_elementtree.vcproj 2017-09-16 12:38:35.000000000 -0500
194+++ misc/build/Python-2.7.18/PC/VS9.0/_elementtree.vcproj   2017-10-21 17:56:40.221003000 -0500
195@@ -57,6 +57,7 @@
196            <Tool
197                Name="VCLinkerTool"
198                BaseAddress="0x1D100000"
199+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
200            />
201            <Tool
202                Name="VCALinkTool"
203@@ -119,6 +120,7 @@
204            <Tool
205                Name="VCLinkerTool"
206                BaseAddress="0x1D100000"
207+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
208            />
209            <Tool
210                Name="VCALinkTool"
211@@ -181,6 +183,7 @@
212            <Tool
213                Name="VCLinkerTool"
214                BaseAddress="0x1D100000"
215+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
216            />
217            <Tool
218                Name="VCALinkTool"
219@@ -244,6 +247,7 @@
220            <Tool
221                Name="VCLinkerTool"
222                BaseAddress="0x1D100000"
223+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
224            />
225            <Tool
226                Name="VCALinkTool"
227@@ -306,6 +310,7 @@
228            <Tool
229                Name="VCLinkerTool"
230                BaseAddress="0x1D100000"
231+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
232            />
233            <Tool
234                Name="VCALinkTool"
235@@ -370,6 +375,7 @@
236                Name="VCLinkerTool"
237                BaseAddress="0x1D100000"
238                TargetMachine="17"
239+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
240            />
241            <Tool
242                Name="VCALinkTool"
243@@ -432,6 +438,7 @@
244            <Tool
245                Name="VCLinkerTool"
246                BaseAddress="0x1D100000"
247+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
248            />
249            <Tool
250                Name="VCALinkTool"
251@@ -496,6 +503,7 @@
252                Name="VCLinkerTool"
253                BaseAddress="0x1D100000"
254                TargetMachine="17"
255+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
256            />
257            <Tool
258                Name="VCALinkTool"
259diff -urp misc/Python-2.7.18/PC/VS9.0/_hashlib.vcproj misc/build/Python-2.7.18/PC/VS9.0/_hashlib.vcproj
260--- misc/Python-2.7.18/PC/VS9.0/_hashlib.vcproj 2017-09-16 12:38:35.000000000 -0500
261+++ misc/build/Python-2.7.18/PC/VS9.0/_hashlib.vcproj   2017-10-21 17:56:40.222221000 -0500
262@@ -58,6 +58,7 @@
263            <Tool
264                Name="VCLinkerTool"
265                AdditionalDependencies="ws2_32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
266+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
267            />
268            <Tool
269                Name="VCALinkTool"
270@@ -121,6 +122,7 @@
271            <Tool
272                Name="VCLinkerTool"
273                AdditionalDependencies="ws2_32.lib $(opensslDir)\out64\libeay32.lib $(opensslDir)\out64\ssleay32.lib"
274+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
275            />
276            <Tool
277                Name="VCALinkTool"
278@@ -184,6 +186,7 @@
279            <Tool
280                Name="VCLinkerTool"
281                AdditionalDependencies="ws2_32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
282+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
283            />
284            <Tool
285                Name="VCALinkTool"
286@@ -248,6 +251,7 @@
287            <Tool
288                Name="VCLinkerTool"
289                AdditionalDependencies="ws2_32.lib $(opensslDir)\out64\libeay32.lib $(opensslDir)\out64\ssleay32.lib"
290+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
291            />
292            <Tool
293                Name="VCALinkTool"
294@@ -311,6 +315,7 @@
295            <Tool
296                Name="VCLinkerTool"
297                AdditionalDependencies="ws2_32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
298+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
299            />
300            <Tool
301                Name="VCALinkTool"
302@@ -376,6 +381,7 @@
303                Name="VCLinkerTool"
304                AdditionalDependencies="ws2_32.lib $(opensslDir)\out64\libeay32.lib $(opensslDir)\out64\ssleay32.lib"
305                TargetMachine="17"
306+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
307            />
308            <Tool
309                Name="VCALinkTool"
310@@ -439,6 +445,7 @@
311            <Tool
312                Name="VCLinkerTool"
313                AdditionalDependencies="ws2_32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
314+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
315            />
316            <Tool
317                Name="VCALinkTool"
318@@ -504,6 +511,7 @@
319                Name="VCLinkerTool"
320                AdditionalDependencies="ws2_32.lib $(opensslDir)\out64\libeay32.lib $(opensslDir)\out64\ssleay32.lib"
321                TargetMachine="17"
322+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
323            />
324            <Tool
325                Name="VCALinkTool"
326diff -urp misc/Python-2.7.18/PC/VS9.0/_msi.vcproj misc/build/Python-2.7.18/PC/VS9.0/_msi.vcproj
327--- misc/Python-2.7.18/PC/VS9.0/_msi.vcproj 2017-09-16 12:38:35.000000000 -0500
328+++ misc/build/Python-2.7.18/PC/VS9.0/_msi.vcproj   2017-10-21 17:56:40.223291000 -0500
329@@ -56,6 +56,7 @@
330                Name="VCLinkerTool"
331                AdditionalDependencies="fci.lib msi.lib rpcrt4.lib"
332                BaseAddress="0x1D160000"
333+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
334            />
335            <Tool
336                Name="VCALinkTool"
337@@ -117,6 +118,7 @@
338                Name="VCLinkerTool"
339                AdditionalDependencies="fci.lib msi.lib rpcrt4.lib"
340                BaseAddress="0x1D160000"
341+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
342            />
343            <Tool
344                Name="VCALinkTool"
345@@ -178,6 +180,7 @@
346                Name="VCLinkerTool"
347                AdditionalDependencies="fci.lib msi.lib rpcrt4.lib"
348                BaseAddress="0x1D160000"
349+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
350            />
351            <Tool
352                Name="VCALinkTool"
353@@ -240,6 +243,7 @@
354                Name="VCLinkerTool"
355                AdditionalDependencies="fci.lib msi.lib rpcrt4.lib"
356                BaseAddress="0x1D160000"
357+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
358            />
359            <Tool
360                Name="VCALinkTool"
361@@ -301,6 +305,7 @@
362                Name="VCLinkerTool"
363                AdditionalDependencies="fci.lib msi.lib rpcrt4.lib"
364                BaseAddress="0x1D160000"
365+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
366            />
367            <Tool
368                Name="VCALinkTool"
369@@ -364,6 +369,7 @@
370                AdditionalDependencies="fci.lib msi.lib rpcrt4.lib"
371                BaseAddress="0x1D160000"
372                TargetMachine="17"
373+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
374            />
375            <Tool
376                Name="VCALinkTool"
377@@ -425,6 +431,7 @@
378                Name="VCLinkerTool"
379                AdditionalDependencies="fci.lib msi.lib rpcrt4.lib"
380                BaseAddress="0x1D160000"
381+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
382            />
383            <Tool
384                Name="VCALinkTool"
385@@ -488,6 +495,7 @@
386                AdditionalDependencies="fci.lib msi.lib rpcrt4.lib"
387                BaseAddress="0x1D160000"
388                TargetMachine="17"
389+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
390            />
391            <Tool
392                Name="VCALinkTool"
393diff -urp misc/Python-2.7.18/PC/VS9.0/_multiprocessing.vcproj misc/build/Python-2.7.18/PC/VS9.0/_multiprocessing.vcproj
394--- misc/Python-2.7.18/PC/VS9.0/_multiprocessing.vcproj 2017-09-16 12:38:35.000000000 -0500
395+++ misc/build/Python-2.7.18/PC/VS9.0/_multiprocessing.vcproj   2017-10-21 17:56:40.224316000 -0500
396@@ -56,6 +56,7 @@
397                Name="VCLinkerTool"
398                AdditionalDependencies="ws2_32.lib"
399                BaseAddress="0x1e1D0000"
400+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
401            />
402            <Tool
403                Name="VCALinkTool"
404@@ -117,6 +118,7 @@
405                Name="VCLinkerTool"
406                AdditionalDependencies="ws2_32.lib"
407                BaseAddress="0x1e1D0000"
408+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
409            />
410            <Tool
411                Name="VCALinkTool"
412@@ -178,6 +180,7 @@
413                Name="VCLinkerTool"
414                AdditionalDependencies="ws2_32.lib"
415                BaseAddress="0x1e1D0000"
416+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
417            />
418            <Tool
419                Name="VCALinkTool"
420@@ -240,6 +243,7 @@
421                Name="VCLinkerTool"
422                AdditionalDependencies="ws2_32.lib"
423                BaseAddress="0x1e1D0000"
424+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
425            />
426            <Tool
427                Name="VCALinkTool"
428@@ -301,6 +305,7 @@
429                Name="VCLinkerTool"
430                AdditionalDependencies="ws2_32.lib"
431                BaseAddress="0x1e1D0000"
432+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
433            />
434            <Tool
435                Name="VCALinkTool"
436@@ -364,6 +369,7 @@
437                AdditionalDependencies="ws2_32.lib"
438                BaseAddress="0x1e1D0000"
439                TargetMachine="17"
440+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
441            />
442            <Tool
443                Name="VCALinkTool"
444@@ -425,6 +431,7 @@
445                Name="VCLinkerTool"
446                AdditionalDependencies="ws2_32.lib"
447                BaseAddress="0x1e1D0000"
448+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
449            />
450            <Tool
451                Name="VCALinkTool"
452@@ -488,6 +495,7 @@
453                AdditionalDependencies="ws2_32.lib"
454                BaseAddress="0x1e1D0000"
455                TargetMachine="17"
456+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
457            />
458            <Tool
459                Name="VCALinkTool"
460diff -urp misc/Python-2.7.18/PC/VS9.0/_socket.vcproj misc/build/Python-2.7.18/PC/VS9.0/_socket.vcproj
461--- misc/Python-2.7.18/PC/VS9.0/_socket.vcproj  2017-09-16 12:38:35.000000000 -0500
462+++ misc/build/Python-2.7.18/PC/VS9.0/_socket.vcproj    2017-10-21 17:56:40.225407000 -0500
463@@ -56,6 +56,7 @@
464                Name="VCLinkerTool"
465                AdditionalDependencies="ws2_32.lib"
466                BaseAddress="0x1e1D0000"
467+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
468            />
469            <Tool
470                Name="VCALinkTool"
471@@ -117,6 +118,7 @@
472                Name="VCLinkerTool"
473                AdditionalDependencies="ws2_32.lib"
474                BaseAddress="0x1e1D0000"
475+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
476            />
477            <Tool
478                Name="VCALinkTool"
479@@ -178,6 +180,7 @@
480                Name="VCLinkerTool"
481                AdditionalDependencies="ws2_32.lib"
482                BaseAddress="0x1e1D0000"
483+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
484            />
485            <Tool
486                Name="VCALinkTool"
487@@ -240,6 +243,7 @@
488                Name="VCLinkerTool"
489                AdditionalDependencies="ws2_32.lib"
490                BaseAddress="0x1e1D0000"
491+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
492            />
493            <Tool
494                Name="VCALinkTool"
495@@ -301,6 +305,7 @@
496                Name="VCLinkerTool"
497                AdditionalDependencies="ws2_32.lib"
498                BaseAddress="0x1e1D0000"
499+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
500            />
501            <Tool
502                Name="VCALinkTool"
503@@ -364,6 +369,7 @@
504                AdditionalDependencies="ws2_32.lib"
505                BaseAddress="0x1e1D0000"
506                TargetMachine="17"
507+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
508            />
509            <Tool
510                Name="VCALinkTool"
511@@ -425,6 +431,7 @@
512                Name="VCLinkerTool"
513                AdditionalDependencies="ws2_32.lib"
514                BaseAddress="0x1e1D0000"
515+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
516            />
517            <Tool
518                Name="VCALinkTool"
519@@ -488,6 +495,7 @@
520                AdditionalDependencies="ws2_32.lib"
521                BaseAddress="0x1e1D0000"
522                TargetMachine="17"
523+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
524            />
525            <Tool
526                Name="VCALinkTool"
527diff -urp misc/Python-2.7.18/PC/VS9.0/_sqlite3.vcproj misc/build/Python-2.7.18/PC/VS9.0/_sqlite3.vcproj
528--- misc/Python-2.7.18/PC/VS9.0/_sqlite3.vcproj 2017-09-16 12:38:35.000000000 -0500
529+++ misc/build/Python-2.7.18/PC/VS9.0/_sqlite3.vcproj   2017-10-21 17:56:40.226403000 -0500
530@@ -57,6 +57,7 @@
531            <Tool
532                Name="VCLinkerTool"
533                BaseAddress="0x1e180000"
534+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
535            />
536            <Tool
537                Name="VCALinkTool"
538@@ -119,6 +120,7 @@
539            <Tool
540                Name="VCLinkerTool"
541                BaseAddress="0x1e180000"
542+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
543            />
544            <Tool
545                Name="VCALinkTool"
546@@ -181,6 +183,7 @@
547            <Tool
548                Name="VCLinkerTool"
549                BaseAddress="0x1e180000"
550+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
551            />
552            <Tool
553                Name="VCALinkTool"
554@@ -244,6 +247,7 @@
555            <Tool
556                Name="VCLinkerTool"
557                BaseAddress="0x1e180000"
558+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
559            />
560            <Tool
561                Name="VCALinkTool"
562@@ -306,6 +310,7 @@
563            <Tool
564                Name="VCLinkerTool"
565                BaseAddress="0x1e180000"
566+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
567            />
568            <Tool
569                Name="VCALinkTool"
570@@ -370,6 +375,7 @@
571                Name="VCLinkerTool"
572                BaseAddress="0x1e180000"
573                TargetMachine="17"
574+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
575            />
576            <Tool
577                Name="VCALinkTool"
578@@ -432,6 +438,7 @@
579            <Tool
580                Name="VCLinkerTool"
581                BaseAddress="0x1e180000"
582+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
583            />
584            <Tool
585                Name="VCALinkTool"
586@@ -496,6 +503,7 @@
587                Name="VCLinkerTool"
588                BaseAddress="0x1e180000"
589                TargetMachine="17"
590+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
591            />
592            <Tool
593                Name="VCALinkTool"
594diff -urp misc/Python-2.7.18/PC/VS9.0/_ssl.vcproj misc/build/Python-2.7.18/PC/VS9.0/_ssl.vcproj
595--- misc/Python-2.7.18/PC/VS9.0/_ssl.vcproj 2017-09-16 12:38:35.000000000 -0500
596+++ misc/build/Python-2.7.18/PC/VS9.0/_ssl.vcproj   2017-10-21 17:56:40.227504000 -0500
597@@ -43,7 +43,7 @@
598            />
599            <Tool
600                Name="VCCLCompilerTool"
601-               AdditionalIncludeDirectories="$(opensslDir)\include32"
602+               AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc$(UPDMINOREXT)\external"
603            />
604            <Tool
605                Name="VCManagedResourceCompilerTool"
606@@ -57,7 +57,8 @@
607            />
608            <Tool
609                Name="VCLinkerTool"
610-               AdditionalDependencies="ws2_32.lib crypt32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
611+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
612+               AdditionalDependencies="ws2_32.lib crypt32.lib $(SOLARVER)\$(INPATH)\lib$(UPDMINOREXT)\libeay32.lib"
613            />
614            <Tool
615                Name="VCALinkTool"
616@@ -106,7 +107,7 @@
617            />
618            <Tool
619                Name="VCCLCompilerTool"
620-               AdditionalIncludeDirectories="$(opensslDir)\include64"
621+               AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc$(UPDMINOREXT)\external"
622            />
623            <Tool
624                Name="VCManagedResourceCompilerTool"
625@@ -120,7 +121,8 @@
626            />
627            <Tool
628                Name="VCLinkerTool"
629-               AdditionalDependencies="ws2_32.lib crypt32.lib $(opensslDir)\out64\libeay32.lib $(opensslDir)\out64\ssleay32.lib"
630+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
631+               AdditionalDependencies="ws2_32.lib crypt32.lib $(SOLARVER)\$(INPATH)\lib$(UPDMINOREXT)\libeay32.lib"
632            />
633            <Tool
634                Name="VCALinkTool"
635@@ -169,7 +171,7 @@
636            />
637            <Tool
638                Name="VCCLCompilerTool"
639-               AdditionalIncludeDirectories="$(opensslDir)\include32"
640+               AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc$(UPDMINOREXT)\external"
641            />
642            <Tool
643                Name="VCManagedResourceCompilerTool"
644@@ -183,7 +185,8 @@
645            />
646            <Tool
647                Name="VCLinkerTool"
648-               AdditionalDependencies="ws2_32.lib crypt32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
649+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
650+               AdditionalDependencies="ws2_32.lib crypt32.lib $(SOLARVER)\$(INPATH)\lib$(UPDMINOREXT)\libeay32.lib $(SOLARVER)\$(INPATH)\lib$(UPDMINOREXT)\ssleay32.lib"
651            />
652            <Tool
653                Name="VCALinkTool"
654@@ -233,7 +236,7 @@
655            />
656            <Tool
657                Name="VCCLCompilerTool"
658-               AdditionalIncludeDirectories="$(opensslDir)\include64"
659+               AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc$(UPDMINOREXT)\external"
660            />
661            <Tool
662                Name="VCManagedResourceCompilerTool"
663@@ -247,7 +250,8 @@
664            />
665            <Tool
666                Name="VCLinkerTool"
667-               AdditionalDependencies="ws2_32.lib crypt32.lib $(opensslDir)\out64\libeay32.lib $(opensslDir)\out64\ssleay32.lib"
668+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
669
670+               AdditionalDependencies="ws2_32.lib crypt32.lib $(SOLARVER)\$(INPATH)\lib$(UPDMINOREXT)\libeay32.lib $(SOLARVER)\$(INPATH)\lib$(UPDMINOREXT)\ssleay32.lib"
671            />
672            <Tool
673                Name="VCALinkTool"
674@@ -296,7 +300,7 @@
675            />
676            <Tool
677                Name="VCCLCompilerTool"
678-               AdditionalIncludeDirectories="$(opensslDir)\include32"
679+               AdditionalIncludeDirectories="$(SOLARVERSION)\$(INPATH)\inc$(UPDMINOREXT)\external"
680            />
681            <Tool
682                Name="VCManagedResourceCompilerTool"
683@@ -310,7 +314,8 @@
684            />
685            <Tool
686                Name="VCLinkerTool"
687-               AdditionalDependencies="ws2_32.lib crypt32.lib $(opensslDir)\out32\libeay32.lib $(opensslDir)\out32\ssleay32.lib"
688+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
689+               AdditionalDependencies="ws2_32.lib crypt32.lib $(SOLARVER)\$(INPATH)\lib$(UPDMINOREXT)\libeay32.lib"
690            />
691            <Tool
692                Name="VCALinkTool"
693diff -urp misc/Python-2.7.18/PC/VS9.0/_testcapi.vcproj misc/build/Python-2.7.18/PC/VS9.0/_testcapi.vcproj
694--- misc/Python-2.7.18/PC/VS9.0/_testcapi.vcproj    2017-09-16 12:38:35.000000000 -0500
695+++ misc/build/Python-2.7.18/PC/VS9.0/_testcapi.vcproj  2017-10-21 17:56:40.228516000 -0500
696@@ -55,6 +55,7 @@
697            <Tool
698                Name="VCLinkerTool"
699                BaseAddress="0x1e1F0000"
700+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
701            />
702            <Tool
703                Name="VCALinkTool"
704@@ -115,6 +116,7 @@
705            <Tool
706                Name="VCLinkerTool"
707                BaseAddress="0x1e1F0000"
708+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
709            />
710            <Tool
711                Name="VCALinkTool"
712@@ -175,6 +177,7 @@
713            <Tool
714                Name="VCLinkerTool"
715                BaseAddress="0x1e1F0000"
716+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
717            />
718            <Tool
719                Name="VCALinkTool"
720@@ -236,6 +239,7 @@
721            <Tool
722                Name="VCLinkerTool"
723                BaseAddress="0x1e1F0000"
724+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
725            />
726            <Tool
727                Name="VCALinkTool"
728@@ -296,6 +300,7 @@
729            <Tool
730                Name="VCLinkerTool"
731                BaseAddress="0x1e1F0000"
732+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
733            />
734            <Tool
735                Name="VCALinkTool"
736@@ -358,6 +363,7 @@
737                Name="VCLinkerTool"
738                BaseAddress="0x1e1F0000"
739                TargetMachine="17"
740+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
741            />
742            <Tool
743                Name="VCALinkTool"
744@@ -418,6 +424,7 @@
745            <Tool
746                Name="VCLinkerTool"
747                BaseAddress="0x1e1F0000"
748+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
749            />
750            <Tool
751                Name="VCALinkTool"
752@@ -480,6 +487,7 @@
753                Name="VCLinkerTool"
754                BaseAddress="0x1e1F0000"
755                TargetMachine="17"
756+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
757            />
758            <Tool
759                Name="VCALinkTool"
760diff -urp misc/Python-2.7.18/PC/VS9.0/_tkinter.vcproj misc/build/Python-2.7.18/PC/VS9.0/_tkinter.vcproj
761--- misc/Python-2.7.18/PC/VS9.0/_tkinter.vcproj 2017-09-16 12:38:35.000000000 -0500
762+++ misc/build/Python-2.7.18/PC/VS9.0/_tkinter.vcproj   2017-10-21 17:56:40.229664000 -0500
763@@ -57,6 +57,7 @@
764            <Tool
765                Name="VCLinkerTool"
766                AdditionalDependencies="$(tcltkLibDebug)"
767+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
768            />
769            <Tool
770                Name="VCALinkTool"
771@@ -119,6 +120,7 @@
772            <Tool
773                Name="VCLinkerTool"
774                AdditionalDependencies="$(tcltk64LibDebug)"
775+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
776            />
777            <Tool
778                Name="VCALinkTool"
779@@ -181,6 +183,7 @@
780            <Tool
781                Name="VCLinkerTool"
782                AdditionalDependencies="$(tcltkLib)"
783+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
784            />
785            <Tool
786                Name="VCALinkTool"
787@@ -244,6 +247,7 @@
788            <Tool
789                Name="VCLinkerTool"
790                AdditionalDependencies="$(tcltk64Lib)"
791+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
792            />
793            <Tool
794                Name="VCALinkTool"
795@@ -306,6 +310,7 @@
796            <Tool
797                Name="VCLinkerTool"
798                AdditionalDependencies="$(tcltkLib)"
799+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
800            />
801            <Tool
802                Name="VCALinkTool"
803@@ -370,6 +375,7 @@
804                Name="VCLinkerTool"
805                AdditionalDependencies="$(tcltk64Lib)"
806                TargetMachine="17"
807+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
808            />
809            <Tool
810                Name="VCALinkTool"
811@@ -432,6 +438,7 @@
812            <Tool
813                Name="VCLinkerTool"
814                AdditionalDependencies="$(tcltkLib)"
815+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
816            />
817            <Tool
818                Name="VCALinkTool"
819@@ -496,6 +503,7 @@
820                Name="VCLinkerTool"
821                AdditionalDependencies="$(tcltk64Lib)"
822                TargetMachine="17"
823+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
824            />
825            <Tool
826                Name="VCALinkTool"
827diff -urp misc/Python-2.7.18/PC/VS9.0/bdist_wininst.vcproj misc/build/Python-2.7.18/PC/VS9.0/bdist_wininst.vcproj
828--- misc/Python-2.7.18/PC/VS9.0/bdist_wininst.vcproj    2017-09-16 12:38:35.000000000 -0500
829+++ misc/build/Python-2.7.18/PC/VS9.0/bdist_wininst.vcproj  2017-10-21 17:56:40.230806000 -0500
830@@ -81,8 +81,7 @@
831                IgnoreDefaultLibraryNames="LIBC"
832                ProgramDatabaseFile="..\..\lib\distutils\command\wininst-9.0.pdb"
833                SubSystem="2"
834-               RandomizedBaseAddress="1"
835-               DataExecutionPrevention="0"
836+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
837                TargetMachine="1"
838            />
839            <Tool
840@@ -171,8 +170,7 @@
841                IgnoreDefaultLibraryNames="LIBC"
842                ProgramDatabaseFile="..\..\lib\distutils\command\wininst-9.0-amd64.pdb"
843                SubSystem="2"
844-               RandomizedBaseAddress="1"
845-               DataExecutionPrevention="0"
846+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
847                TargetMachine="17"
848            />
849            <Tool
850diff -urp misc/Python-2.7.18/PC/VS9.0/bz2.vcproj misc/build/Python-2.7.18/PC/VS9.0/bz2.vcproj
851--- misc/Python-2.7.18/PC/VS9.0/bz2.vcproj  2017-09-16 12:38:35.000000000 -0500
852+++ misc/build/Python-2.7.18/PC/VS9.0/bz2.vcproj    2017-10-21 17:56:40.232092000 -0500
853@@ -57,6 +57,7 @@
854            <Tool
855                Name="VCLinkerTool"
856                BaseAddress="0x1D170000"
857+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
858            />
859            <Tool
860                Name="VCALinkTool"
861@@ -119,6 +120,7 @@
862            <Tool
863                Name="VCLinkerTool"
864                BaseAddress="0x1D170000"
865+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
866            />
867            <Tool
868                Name="VCALinkTool"
869@@ -181,6 +183,7 @@
870            <Tool
871                Name="VCLinkerTool"
872                BaseAddress="0x1D170000"
873+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
874            />
875            <Tool
876                Name="VCALinkTool"
877@@ -244,6 +247,7 @@
878            <Tool
879                Name="VCLinkerTool"
880                BaseAddress="0x1D170000"
881+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
882            />
883            <Tool
884                Name="VCALinkTool"
885@@ -306,6 +310,7 @@
886            <Tool
887                Name="VCLinkerTool"
888                BaseAddress="0x1D170000"
889+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
890            />
891            <Tool
892                Name="VCALinkTool"
893@@ -370,6 +375,7 @@
894                Name="VCLinkerTool"
895                BaseAddress="0x1D170000"
896                TargetMachine="17"
897+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
898            />
899            <Tool
900                Name="VCALinkTool"
901@@ -432,6 +438,7 @@
902            <Tool
903                Name="VCLinkerTool"
904                BaseAddress="0x1D170000"
905+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
906            />
907            <Tool
908                Name="VCALinkTool"
909@@ -496,6 +503,7 @@
910                Name="VCLinkerTool"
911                BaseAddress="0x1D170000"
912                TargetMachine="17"
913+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
914            />
915            <Tool
916                Name="VCALinkTool"
917diff -urp misc/Python-2.7.18/PC/VS9.0/kill_python.vcproj misc/build/Python-2.7.18/PC/VS9.0/kill_python.vcproj
918--- misc/Python-2.7.18/PC/VS9.0/kill_python.vcproj  2017-09-16 12:38:35.000000000 -0500
919+++ misc/build/Python-2.7.18/PC/VS9.0/kill_python.vcproj    2017-10-21 17:56:40.233109000 -0500
920@@ -56,6 +56,7 @@
921                Name="VCLinkerTool"
922                OutputFile="$(OutDir)\$(ProjectName)_d.exe"
923                SubSystem="1"
924+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
925            />
926            <Tool
927                Name="VCALinkTool"
928@@ -117,6 +118,7 @@
929                Name="VCLinkerTool"
930                OutputFile="$(OutDir)\$(ProjectName)_d.exe"
931                SubSystem="1"
932+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
933            />
934            <Tool
935                Name="VCALinkTool"
936@@ -177,6 +179,7 @@
937            <Tool
938                Name="VCLinkerTool"
939                SubSystem="1"
940+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
941            />
942            <Tool
943                Name="VCALinkTool"
944@@ -238,6 +241,7 @@
945            <Tool
946                Name="VCLinkerTool"
947                SubSystem="1"
948+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
949            />
950            <Tool
951                Name="VCALinkTool"
952diff -urp misc/Python-2.7.18/PC/VS9.0/make_buildinfo.vcproj misc/build/Python-2.7.18/PC/VS9.0/make_buildinfo.vcproj
953--- misc/Python-2.7.18/PC/VS9.0/make_buildinfo.vcproj   2017-09-16 12:38:35.000000000 -0500
954+++ misc/build/Python-2.7.18/PC/VS9.0/make_buildinfo.vcproj 2017-10-21 17:56:40.233689000 -0500
955@@ -61,6 +61,7 @@
956                OutputFile="$(OutDir)/make_buildinfo.exe"
957                ProgramDatabaseFile="$(TargetDir)$(TargetName).pdb"
958                SubSystem="1"
959+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
960            />
961            <Tool
962                Name="VCALinkTool"
963@@ -119,6 +120,7 @@
964            />
965            <Tool
966                Name="VCLinkerTool"
967+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
968            />
969            <Tool
970                Name="VCALinkTool"
971diff -urp misc/Python-2.7.18/PC/VS9.0/make_versioninfo.vcproj misc/build/Python-2.7.18/PC/VS9.0/make_versioninfo.vcproj
972--- misc/Python-2.7.18/PC/VS9.0/make_versioninfo.vcproj 2017-09-16 12:38:35.000000000 -0500
973+++ misc/build/Python-2.7.18/PC/VS9.0/make_versioninfo.vcproj   2017-10-21 17:56:40.234324000 -0500
974@@ -71,6 +71,7 @@
975                ProgramDatabaseFile="$(TargetDir)$(TargetName).pdb"
976                SubSystem="1"
977                BaseAddress="0x1d000000"
978+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
979            />
980            <Tool
981                Name="VCALinkTool"
982@@ -137,6 +138,7 @@
983            <Tool
984                Name="VCLinkerTool"
985                OutputFile="$(SolutionDir)make_versioninfo.exe"
986+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
987            />
988            <Tool
989                Name="VCALinkTool"
990@@ -214,6 +216,7 @@
991                ProgramDatabaseFile="$(TargetDir)$(TargetName).pdb"
992                SubSystem="1"
993                BaseAddress="0x1d000000"
994+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
995            />
996            <Tool
997                Name="VCALinkTool"
998@@ -282,6 +285,7 @@
999                Name="VCLinkerTool"
1000                OutputFile="$(SolutionDir)make_versioninfo_d.exe"
1001                TargetMachine="17"
1002+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1003            />
1004            <Tool
1005                Name="VCALinkTool"
1006diff -urp misc/Python-2.7.18/PC/VS9.0/pcbuild.sln misc/build/Python-2.7.18/PC/VS9.0/pcbuild.sln
1007--- misc/Python-2.7.18/PC/VS9.0/pcbuild.sln 2017-09-16 12:38:35.000000000 -0500
1008+++ misc/build/Python-2.7.18/PC/VS9.0/pcbuild.sln   2017-10-21 17:56:40.235608000 -0500
1009@@ -38,12 +38,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C9
1010        {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1011    EndProjectSection
1012 EndProject
1013-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_bsddb", "_bsddb.vcproj", "{B4D38F3F-68FB-42EC-A45D-E00657BB3627}"
1014-   ProjectSection(ProjectDependencies) = postProject
1015-       {6DE10744-E396-40A5-B4E2-1B69AA7C8D31} = {6DE10744-E396-40A5-B4E2-1B69AA7C8D31}
1016-       {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1017-   EndProjectSection
1018-EndProject
1019+#Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_bsddb", "_bsddb.vcproj", "{B4D38F3F-68FB-42EC-A45D-E00657BB3627}"
1020+#  ProjectSection(ProjectDependencies) = postProject
1021+#      {6DE10744-E396-40A5-B4E2-1B69AA7C8D31} = {6DE10744-E396-40A5-B4E2-1B69AA7C8D31}
1022+#      {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1023+#  EndProjectSection
1024+#EndProject
1025 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_ctypes", "_ctypes.vcproj", "{0E9791DB-593A-465F-98BC-681011311618}"
1026    ProjectSection(ProjectDependencies) = postProject
1027        {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1028@@ -69,12 +69,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C9
1029        {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1030    EndProjectSection
1031 EndProject
1032-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_sqlite3", "_sqlite3.vcproj", "{13CECB97-4119-4316-9D42-8534019A5A44}"
1033-   ProjectSection(ProjectDependencies) = postProject
1034-       {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1035-       {A1A295E5-463C-437F-81CA-1F32367685DA} = {A1A295E5-463C-437F-81CA-1F32367685DA}
1036-   EndProjectSection
1037-EndProject
1038+#Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_sqlite3", "_sqlite3.vcproj", "{13CECB97-4119-4316-9D42-8534019A5A44}"
1039+#  ProjectSection(ProjectDependencies) = postProject
1040+#      {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1041+#      {A1A295E5-463C-437F-81CA-1F32367685DA} = {A1A295E5-463C-437F-81CA-1F32367685DA}
1042+#  EndProjectSection
1043+#EndProject
1044 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_ssl", "_ssl.vcproj", "{C6E20F84-3247-4AD6-B051-B073268F73BA}"
1045    ProjectSection(ProjectDependencies) = postProject
1046        {B11D750F-CD1F-4A96-85CE-E69A5C5259F9} = {B11D750F-CD1F-4A96-85CE-E69A5C5259F9}
1047@@ -87,16 +87,16 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C9
1048        {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1049    EndProjectSection
1050 EndProject
1051-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_tkinter", "_tkinter.vcproj", "{4946ECAC-2E69-4BF8-A90A-F5136F5094DF}"
1052-   ProjectSection(ProjectDependencies) = postProject
1053-       {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1054-   EndProjectSection
1055-EndProject
1056-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bz2", "bz2.vcproj", "{73FCD2BD-F133-46B7-8EC1-144CD82A59D5}"
1057-   ProjectSection(ProjectDependencies) = postProject
1058-       {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1059-   EndProjectSection
1060-EndProject
1061+#Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_tkinter", "_tkinter.vcproj", "{4946ECAC-2E69-4BF8-A90A-F5136F5094DF}"
1062+#  ProjectSection(ProjectDependencies) = postProject
1063+#      {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1064+#  EndProjectSection
1065+#EndProject
1066+#Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bz2", "bz2.vcproj", "{73FCD2BD-F133-46B7-8EC1-144CD82A59D5}"
1067+#  ProjectSection(ProjectDependencies) = postProject
1068+#      {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1069+#  EndProjectSection
1070+#EndProject
1071 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "select", "select.vcproj", "{18CAE28C-B454-46C1-87A0-493D91D97F03}"
1072    ProjectSection(ProjectDependencies) = postProject
1073        {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1074@@ -114,17 +114,17 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C9
1075 EndProject
1076 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bdist_wininst", "bdist_wininst.vcproj", "{EB1C19C1-1F18-421E-9735-CAEE69DC6A3C}"
1077 EndProject
1078-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_hashlib", "_hashlib.vcproj", "{447F05A8-F581-4CAC-A466-5AC7936E207E}"
1079-   ProjectSection(ProjectDependencies) = postProject
1080-       {B11D750F-CD1F-4A96-85CE-E69A5C5259F9} = {B11D750F-CD1F-4A96-85CE-E69A5C5259F9}
1081-       {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1082-   EndProjectSection
1083-EndProject
1084-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3.vcproj", "{A1A295E5-463C-437F-81CA-1F32367685DA}"
1085-   ProjectSection(ProjectDependencies) = postProject
1086-       {6DE10744-E396-40A5-B4E2-1B69AA7C8D31} = {6DE10744-E396-40A5-B4E2-1B69AA7C8D31}
1087-   EndProjectSection
1088-EndProject
1089+#Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_hashlib", "_hashlib.vcproj", "{447F05A8-F581-4CAC-A466-5AC7936E207E}"
1090+#  ProjectSection(ProjectDependencies) = postProject
1091+#      {B11D750F-CD1F-4A96-85CE-E69A5C5259F9} = {B11D750F-CD1F-4A96-85CE-E69A5C5259F9}
1092+#      {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1093+#  EndProjectSection
1094+#EndProject
1095+#Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlite3", "sqlite3.vcproj", "{A1A295E5-463C-437F-81CA-1F32367685DA}"
1096+#  ProjectSection(ProjectDependencies) = postProject
1097+#      {6DE10744-E396-40A5-B4E2-1B69AA7C8D31} = {6DE10744-E396-40A5-B4E2-1B69AA7C8D31}
1098+#  EndProjectSection
1099+#EndProject
1100 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_multiprocessing", "_multiprocessing.vcproj", "{9E48B300-37D1-11DD-8C41-005056C00008}"
1101    ProjectSection(ProjectDependencies) = postProject
1102        {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
1103diff -urp misc/Python-2.7.18/PC/VS9.0/pyexpat.vcproj misc/build/Python-2.7.18/PC/VS9.0/pyexpat.vcproj
1104--- misc/Python-2.7.18/PC/VS9.0/pyexpat.vcproj  2017-09-16 12:38:35.000000000 -0500
1105+++ misc/build/Python-2.7.18/PC/VS9.0/pyexpat.vcproj    2017-10-21 17:56:40.236395000 -0500
1106@@ -56,6 +56,7 @@
1107            />
1108            <Tool
1109                Name="VCLinkerTool"
1110+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1111            />
1112            <Tool
1113                Name="VCALinkTool"
1114@@ -117,6 +118,7 @@
1115            />
1116            <Tool
1117                Name="VCLinkerTool"
1118+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1119            />
1120            <Tool
1121                Name="VCALinkTool"
1122@@ -178,6 +180,7 @@
1123            />
1124            <Tool
1125                Name="VCLinkerTool"
1126+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1127            />
1128            <Tool
1129                Name="VCALinkTool"
1130@@ -240,6 +243,7 @@
1131            />
1132            <Tool
1133                Name="VCLinkerTool"
1134+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1135            />
1136            <Tool
1137                Name="VCALinkTool"
1138@@ -301,6 +305,7 @@
1139            />
1140            <Tool
1141                Name="VCLinkerTool"
1142+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1143            />
1144            <Tool
1145                Name="VCALinkTool"
1146@@ -364,6 +369,7 @@
1147            <Tool
1148                Name="VCLinkerTool"
1149                TargetMachine="17"
1150+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1151            />
1152            <Tool
1153                Name="VCALinkTool"
1154@@ -425,6 +431,7 @@
1155            />
1156            <Tool
1157                Name="VCLinkerTool"
1158+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1159            />
1160            <Tool
1161                Name="VCALinkTool"
1162@@ -488,6 +495,7 @@
1163            <Tool
1164                Name="VCLinkerTool"
1165                TargetMachine="17"
1166+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1167            />
1168            <Tool
1169                Name="VCALinkTool"
1170diff -urp misc/Python-2.7.18/PC/VS9.0/python.vcproj misc/build/Python-2.7.18/PC/VS9.0/python.vcproj
1171--- misc/Python-2.7.18/PC/VS9.0/python.vcproj   2017-09-16 12:38:35.000000000 -0500
1172+++ misc/build/Python-2.7.18/PC/VS9.0/python.vcproj 2017-10-21 17:56:40.237211000 -0500
1173@@ -66,6 +66,7 @@
1174                SubSystem="1"
1175                StackReserveSize="2000000"
1176                BaseAddress="0x1d000000"
1177+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1178            />
1179            <Tool
1180                Name="VCALinkTool"
1181@@ -139,6 +140,7 @@
1182                SubSystem="1"
1183                StackReserveSize="2000000"
1184                BaseAddress="0x1d000000"
1185+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1186            />
1187            <Tool
1188                Name="VCALinkTool"
1189@@ -213,6 +215,7 @@
1190                SubSystem="1"
1191                StackReserveSize="2000000"
1192                BaseAddress="0x1d000000"
1193+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1194            />
1195            <Tool
1196                Name="VCALinkTool"
1197@@ -288,6 +291,7 @@
1198                SubSystem="1"
1199                StackReserveSize="2100000"
1200                BaseAddress="0x1d000000"
1201+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1202            />
1203            <Tool
1204                Name="VCALinkTool"
1205@@ -361,6 +365,7 @@
1206                StackReserveSize="2000000"
1207                BaseAddress="0x1d000000"
1208                ImportLibrary=""
1209+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1210            />
1211            <Tool
1212                Name="VCALinkTool"
1213@@ -436,6 +441,7 @@
1214                BaseAddress="0x1d000000"
1215                ImportLibrary=""
1216                TargetMachine="17"
1217+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1218            />
1219            <Tool
1220                Name="VCALinkTool"
1221@@ -509,6 +515,7 @@
1222                StackReserveSize="2000000"
1223                BaseAddress="0x1d000000"
1224                ImportLibrary=""
1225+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1226            />
1227            <Tool
1228                Name="VCALinkTool"
1229@@ -584,6 +591,7 @@
1230                BaseAddress="0x1d000000"
1231                ImportLibrary=""
1232                TargetMachine="17"
1233+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1234            />
1235            <Tool
1236                Name="VCALinkTool"
1237diff -urp misc/Python-2.7.18/PC/VS9.0/pythoncore.vcproj misc/build/Python-2.7.18/PC/VS9.0/pythoncore.vcproj
1238--- misc/Python-2.7.18/PC/VS9.0/pythoncore.vcproj   2017-09-16 12:38:35.000000000 -0500
1239+++ misc/build/Python-2.7.18/PC/VS9.0/pythoncore.vcproj 2017-10-21 17:56:40.238551000 -0500
1240@@ -69,6 +69,7 @@
1241                ProgramDatabaseFile="$(OutDir)$(PyDllName).pdb"
1242                BaseAddress="0x1e000000"
1243                ImportLibrary="$(OutDir)$(PyDllName).lib"
1244+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1245            />
1246            <Tool
1247                Name="VCALinkTool"
1248@@ -144,6 +145,7 @@
1249                ProgramDatabaseFile="$(OutDir)$(PyDllName).pdb"
1250                BaseAddress="0x1e000000"
1251                ImportLibrary="$(OutDir)$(PyDllName).lib"
1252+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1253            />
1254            <Tool
1255                Name="VCALinkTool"
1256@@ -222,6 +224,7 @@
1257                ProgramDatabaseFile="$(OutDir)$(PyDllName)_d.pdb"
1258                BaseAddress="0x1e000000"
1259                ImportLibrary="$(OutDir)$(PyDllName)_d.lib"
1260+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1261            />
1262            <Tool
1263                Name="VCALinkTool"
1264@@ -300,6 +303,7 @@
1265                ProgramDatabaseFile="$(OutDir)$(PyDllName)_d.pdb"
1266                BaseAddress="0x1e000000"
1267                ImportLibrary="$(OutDir)$(PyDllName)_d.lib"
1268+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1269            />
1270            <Tool
1271                Name="VCALinkTool"
1272@@ -374,6 +378,7 @@
1273                ProgramDatabaseFile="$(OutDir)$(PyDllName).pdb"
1274                BaseAddress="0x1e000000"
1275                ImportLibrary="$(OutDirPGI)$(PyDllName).lib"
1276+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1277            />
1278            <Tool
1279                Name="VCALinkTool"
1280@@ -450,6 +455,7 @@
1281                BaseAddress="0x1e000000"
1282                ImportLibrary="$(OutDirPGI)$(PyDllName).lib"
1283                TargetMachine="17"
1284+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1285            />
1286            <Tool
1287                Name="VCALinkTool"
1288@@ -524,6 +530,7 @@
1289                ProgramDatabaseFile="$(OutDir)$(PyDllName).pdb"
1290                BaseAddress="0x1e000000"
1291                ImportLibrary="$(OutDirPGI)$(PyDllName).lib"
1292+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1293            />
1294            <Tool
1295                Name="VCALinkTool"
1296@@ -600,6 +607,7 @@
1297                BaseAddress="0x1e000000"
1298                ImportLibrary="$(OutDirPGI)$(PyDllName).lib"
1299                TargetMachine="17"
1300+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1301            />
1302            <Tool
1303                Name="VCALinkTool"
1304diff -urp misc/Python-2.7.18/PC/VS9.0/pythonw.vcproj misc/build/Python-2.7.18/PC/VS9.0/pythonw.vcproj
1305--- misc/Python-2.7.18/PC/VS9.0/pythonw.vcproj  2017-09-16 12:38:35.000000000 -0500
1306+++ misc/build/Python-2.7.18/PC/VS9.0/pythonw.vcproj    2017-10-21 17:56:40.239382000 -0500
1307@@ -66,6 +66,7 @@
1308                StackReserveSize="2000000"
1309                BaseAddress="0x1d000000"
1310                TargetMachine="1"
1311+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1312            />
1313            <Tool
1314                Name="VCALinkTool"
1315@@ -137,6 +138,7 @@
1316                OutputFile="$(OutDir)\pythonw_d.exe"
1317                StackReserveSize="2000000"
1318                BaseAddress="0x1d000000"
1319+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1320            />
1321            <Tool
1322                Name="VCALinkTool"
1323@@ -208,6 +210,7 @@
1324                StackReserveSize="2000000"
1325                BaseAddress="0x1d000000"
1326                TargetMachine="1"
1327+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1328            />
1329            <Tool
1330                Name="VCALinkTool"
1331@@ -279,6 +282,7 @@
1332                OutputFile="$(OutDir)\pythonw.exe"
1333                StackReserveSize="2000000"
1334                BaseAddress="0x1d000000"
1335+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1336            />
1337            <Tool
1338                Name="VCALinkTool"
1339@@ -351,6 +355,7 @@
1340                BaseAddress="0x1d000000"
1341                ImportLibrary=""
1342                TargetMachine="1"
1343+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1344            />
1345            <Tool
1346                Name="VCALinkTool"
1347@@ -424,6 +429,7 @@
1348                BaseAddress="0x1d000000"
1349                ImportLibrary=""
1350                TargetMachine="17"
1351+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1352            />
1353            <Tool
1354                Name="VCALinkTool"
1355@@ -496,6 +502,7 @@
1356                BaseAddress="0x1d000000"
1357                ImportLibrary=""
1358                TargetMachine="1"
1359+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1360            />
1361            <Tool
1362                Name="VCALinkTool"
1363@@ -569,6 +576,7 @@
1364                BaseAddress="0x1d000000"
1365                ImportLibrary=""
1366                TargetMachine="17"
1367+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1368            />
1369            <Tool
1370                Name="VCALinkTool"
1371diff -urp misc/Python-2.7.18/PC/VS9.0/select.vcproj misc/build/Python-2.7.18/PC/VS9.0/select.vcproj
1372--- misc/Python-2.7.18/PC/VS9.0/select.vcproj   2017-09-16 12:38:35.000000000 -0500
1373+++ misc/build/Python-2.7.18/PC/VS9.0/select.vcproj 2017-10-21 17:56:40.240210000 -0500
1374@@ -57,6 +57,7 @@
1375                AdditionalDependencies="ws2_32.lib"
1376                IgnoreDefaultLibraryNames="libc"
1377                BaseAddress="0x1D110000"
1378+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1379            />
1380            <Tool
1381                Name="VCALinkTool"
1382@@ -119,6 +120,7 @@
1383                AdditionalDependencies="ws2_32.lib"
1384                IgnoreDefaultLibraryNames="libc"
1385                BaseAddress="0x1D110000"
1386+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1387            />
1388            <Tool
1389                Name="VCALinkTool"
1390@@ -181,6 +183,7 @@
1391                AdditionalDependencies="ws2_32.lib"
1392                IgnoreDefaultLibraryNames="libc"
1393                BaseAddress="0x1D110000"
1394+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1395            />
1396            <Tool
1397                Name="VCALinkTool"
1398@@ -244,6 +247,7 @@
1399                AdditionalDependencies="ws2_32.lib"
1400                IgnoreDefaultLibraryNames="libc"
1401                BaseAddress="0x1D110000"
1402+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1403            />
1404            <Tool
1405                Name="VCALinkTool"
1406@@ -306,6 +310,7 @@
1407                AdditionalDependencies="ws2_32.lib"
1408                IgnoreDefaultLibraryNames="libc"
1409                BaseAddress="0x1D110000"
1410+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1411            />
1412            <Tool
1413                Name="VCALinkTool"
1414@@ -370,6 +375,7 @@
1415                IgnoreDefaultLibraryNames="libc"
1416                BaseAddress="0x1D110000"
1417                TargetMachine="17"
1418+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1419            />
1420            <Tool
1421                Name="VCALinkTool"
1422@@ -432,6 +438,7 @@
1423                AdditionalDependencies="ws2_32.lib"
1424                IgnoreDefaultLibraryNames="libc"
1425                BaseAddress="0x1D110000"
1426+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1427            />
1428            <Tool
1429                Name="VCALinkTool"
1430@@ -496,6 +503,7 @@
1431                IgnoreDefaultLibraryNames="libc"
1432                BaseAddress="0x1D110000"
1433                TargetMachine="17"
1434+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1435            />
1436            <Tool
1437                Name="VCALinkTool"
1438diff -urp misc/Python-2.7.18/PC/VS9.0/sqlite3.vcproj misc/build/Python-2.7.18/PC/VS9.0/sqlite3.vcproj
1439--- misc/Python-2.7.18/PC/VS9.0/sqlite3.vcproj  2017-09-16 12:38:35.000000000 -0500
1440+++ misc/build/Python-2.7.18/PC/VS9.0/sqlite3.vcproj    2017-10-21 17:56:40.241775000 -0500
1441@@ -56,6 +56,7 @@
1442            <Tool
1443                Name="VCLinkerTool"
1444                OutputFile="$(OutDir)\$(ProjectName)_d.dll"
1445+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1446            />
1447            <Tool
1448                Name="VCALinkTool"
1449@@ -117,6 +118,7 @@
1450            <Tool
1451                Name="VCLinkerTool"
1452                OutputFile="$(OutDir)\$(ProjectName)_d.dll"
1453+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1454            />
1455            <Tool
1456                Name="VCALinkTool"
1457@@ -178,6 +180,7 @@
1458            <Tool
1459                Name="VCLinkerTool"
1460                OutputFile="$(OutDir)\$(ProjectName).dll"
1461+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1462            />
1463            <Tool
1464                Name="VCALinkTool"
1465@@ -240,6 +243,7 @@
1466            <Tool
1467                Name="VCLinkerTool"
1468                OutputFile="$(OutDir)\$(ProjectName).dll"
1469+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1470            />
1471            <Tool
1472                Name="VCALinkTool"
1473@@ -301,6 +305,7 @@
1474            <Tool
1475                Name="VCLinkerTool"
1476                OutputFile="$(OutDir)\$(ProjectName).dll"
1477+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1478            />
1479            <Tool
1480                Name="VCALinkTool"
1481@@ -362,6 +367,7 @@
1482            />
1483            <Tool
1484                Name="VCLinkerTool"
1485+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1486            />
1487            <Tool
1488                Name="VCALinkTool"
1489@@ -423,6 +429,7 @@
1490            <Tool
1491                Name="VCLinkerTool"
1492                OutputFile="$(OutDir)\$(ProjectName).dll"
1493+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1494            />
1495            <Tool
1496                Name="VCALinkTool"
1497@@ -484,6 +491,7 @@
1498            />
1499            <Tool
1500                Name="VCLinkerTool"
1501+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1502            />
1503            <Tool
1504                Name="VCALinkTool"
1505diff -urp misc/Python-2.7.18/PC/VS9.0/unicodedata.vcproj misc/build/Python-2.7.18/PC/VS9.0/unicodedata.vcproj
1506--- misc/Python-2.7.18/PC/VS9.0/unicodedata.vcproj  2017-09-16 12:38:35.000000000 -0500
1507+++ misc/build/Python-2.7.18/PC/VS9.0/unicodedata.vcproj    2017-10-21 17:56:40.242820000 -0500
1508@@ -55,6 +55,7 @@
1509            <Tool
1510                Name="VCLinkerTool"
1511                BaseAddress="0x1D120000"
1512+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1513            />
1514            <Tool
1515                Name="VCALinkTool"
1516@@ -115,6 +116,7 @@
1517            <Tool
1518                Name="VCLinkerTool"
1519                BaseAddress="0x1D120000"
1520+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1521            />
1522            <Tool
1523                Name="VCALinkTool"
1524@@ -175,6 +177,7 @@
1525            <Tool
1526                Name="VCLinkerTool"
1527                BaseAddress="0x1D120000"
1528+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1529            />
1530            <Tool
1531                Name="VCALinkTool"
1532@@ -236,6 +239,7 @@
1533            <Tool
1534                Name="VCLinkerTool"
1535                BaseAddress="0x1D120000"
1536+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1537            />
1538            <Tool
1539                Name="VCALinkTool"
1540@@ -296,6 +300,7 @@
1541            <Tool
1542                Name="VCLinkerTool"
1543                BaseAddress="0x1D120000"
1544+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1545            />
1546            <Tool
1547                Name="VCALinkTool"
1548@@ -358,6 +363,7 @@
1549                Name="VCLinkerTool"
1550                BaseAddress="0x1D120000"
1551                TargetMachine="17"
1552+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1553            />
1554            <Tool
1555                Name="VCALinkTool"
1556@@ -418,6 +424,7 @@
1557            <Tool
1558                Name="VCLinkerTool"
1559                BaseAddress="0x1D120000"
1560+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1561            />
1562            <Tool
1563                Name="VCALinkTool"
1564@@ -480,6 +487,7 @@
1565                Name="VCLinkerTool"
1566                BaseAddress="0x1D120000"
1567                TargetMachine="17"
1568+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1569            />
1570            <Tool
1571                Name="VCALinkTool"
1572diff -urp misc/Python-2.7.18/PC/VS9.0/w9xpopen.vcproj misc/build/Python-2.7.18/PC/VS9.0/w9xpopen.vcproj
1573--- misc/Python-2.7.18/PC/VS9.0/w9xpopen.vcproj 2017-09-16 12:38:35.000000000 -0500
1574+++ misc/build/Python-2.7.18/PC/VS9.0/w9xpopen.vcproj   2017-10-21 17:56:40.243805000 -0500
1575@@ -59,6 +59,7 @@
1576            <Tool
1577                Name="VCLinkerTool"
1578                SubSystem="1"
1579+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1580            />
1581            <Tool
1582                Name="VCALinkTool"
1583@@ -124,6 +125,7 @@
1584            <Tool
1585                Name="VCLinkerTool"
1586                SubSystem="1"
1587+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1588            />
1589            <Tool
1590                Name="VCALinkTool"
1591@@ -191,6 +193,7 @@
1592                Name="VCLinkerTool"
1593                GenerateDebugInformation="false"
1594                SubSystem="1"
1595+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1596            />
1597            <Tool
1598                Name="VCALinkTool"
1599@@ -259,6 +262,7 @@
1600                Name="VCLinkerTool"
1601                GenerateDebugInformation="false"
1602                SubSystem="1"
1603+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1604            />
1605            <Tool
1606                Name="VCALinkTool"
1607@@ -327,6 +331,7 @@
1608                GenerateDebugInformation="false"
1609                SubSystem="1"
1610                ImportLibrary=""
1611+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1612            />
1613            <Tool
1614                Name="VCALinkTool"
1615@@ -397,6 +402,7 @@
1616                SubSystem="1"
1617                ImportLibrary=""
1618                TargetMachine="17"
1619+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1620            />
1621            <Tool
1622                Name="VCALinkTool"
1623@@ -465,6 +471,7 @@
1624                GenerateDebugInformation="false"
1625                SubSystem="1"
1626                ImportLibrary=""
1627+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1628            />
1629            <Tool
1630                Name="VCALinkTool"
1631@@ -535,6 +542,7 @@
1632                SubSystem="1"
1633                ImportLibrary=""
1634                TargetMachine="17"
1635+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1636            />
1637            <Tool
1638                Name="VCALinkTool"
1639diff -urp misc/Python-2.7.18/PC/VS9.0/winsound.vcproj misc/build/Python-2.7.18/PC/VS9.0/winsound.vcproj
1640--- misc/Python-2.7.18/PC/VS9.0/winsound.vcproj 2017-09-16 12:38:35.000000000 -0500
1641+++ misc/build/Python-2.7.18/PC/VS9.0/winsound.vcproj   2017-10-21 17:56:40.244677000 -0500
1642@@ -55,6 +55,7 @@
1643            <Tool
1644                Name="VCLinkerTool"
1645                AdditionalDependencies="winmm.lib"
1646+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1647            />
1648            <Tool
1649                Name="VCALinkTool"
1650@@ -115,6 +116,7 @@
1651            <Tool
1652                Name="VCLinkerTool"
1653                AdditionalDependencies="winmm.lib"
1654+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1655            />
1656            <Tool
1657                Name="VCALinkTool"
1658@@ -175,6 +177,7 @@
1659            <Tool
1660                Name="VCLinkerTool"
1661                AdditionalDependencies="winmm.lib"
1662+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1663            />
1664            <Tool
1665                Name="VCALinkTool"
1666@@ -236,6 +239,7 @@
1667            <Tool
1668                Name="VCLinkerTool"
1669                AdditionalDependencies="winmm.lib"
1670+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1671            />
1672            <Tool
1673                Name="VCALinkTool"
1674@@ -296,6 +300,7 @@
1675            <Tool
1676                Name="VCLinkerTool"
1677                AdditionalDependencies="winmm.lib"
1678+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1679            />
1680            <Tool
1681                Name="VCALinkTool"
1682@@ -358,6 +363,7 @@
1683                Name="VCLinkerTool"
1684                AdditionalDependencies="winmm.lib"
1685                TargetMachine="17"
1686+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1687            />
1688            <Tool
1689                Name="VCALinkTool"
1690@@ -418,6 +424,7 @@
1691            <Tool
1692                Name="VCLinkerTool"
1693                AdditionalDependencies="winmm.lib"
1694+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1695            />
1696            <Tool
1697                Name="VCALinkTool"
1698@@ -480,6 +487,7 @@
1699                Name="VCLinkerTool"
1700                AdditionalDependencies="winmm.lib"
1701                TargetMachine="17"
1702+               AdditionalOptions="/SAFESEH /NXCOMPAT /DYNAMICBASE"
1703            />
1704            <Tool
1705                Name="VCALinkTool"
1706