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