postgresql/src
Michael Paquier 36389a060c Enable RandomizedBaseAddress (ASLR) on Windows with MSVC builds
This has as effect to add /DYNAMICBASE to the .dll and .exe files
generated by the builds, undoing 7f3e17b.  Note that ASLR was already
enabled in MinGW as we have never added --disable-dynamicbase there.

This change will ease a bit the integration of arm64 with MSVC, as ASLR
support is mandatory in this case.  So, thanks to this commit, we have
no need to make ASLR conditional depending on the architecture used for
the build.

Andres Freund has done a lot of testing with this option while working
on meson, without seeing /DYNAMICBASE as being a problem in the Windows
builds of the CI.  Personally, not supporting anything older than
Windows 10 on HEAD makes me feel safer about this change, as we have
seen ASLR with being a problem in process invocation particularly with
Windows 8 and server 2012 back in 2014, even if Windows 10 was not
really a thing back then.  45e004f is also something that can help in
making the process invocation more stable.  We are very early in the
development of Postgres 16, giving a lot of room to detect stability
issues if any.

Discussion: https://postgr.es/m/20220826012907.gjw3jdqdgsts5y65@awork3.anarazel.de
2022-08-28 16:04:58 +09:00
..
backend Doc: add comment about bug fixed in back branches as of 3f7323cbb. 2022-08-27 12:16:21 -04:00
bin Remove unneeded null pointer checks before PQfreemem() 2022-08-26 19:16:28 +02:00
common Use SSE2 in is_valid_ascii() where available. 2022-08-26 15:48:49 +07:00
fe_utils Use correct connection for cancellation in frontend's parallel slots 2022-08-27 15:21:31 +09:00
include Use SSE2 in is_valid_ascii() where available. 2022-08-26 15:48:49 +07:00
interfaces Remove configure probe for sockaddr_in6 and require AF_INET6. 2022-08-26 10:18:30 +12:00
makefiles solaris: Remove unnecessary gcc / gnu ld vs sun studio differences 2022-08-07 09:36:01 -07:00
pl Be more careful to avoid including system headers after perl.h 2022-08-27 14:45:18 +07:00
port Remove configure probe for sockaddr_in6 and require AF_INET6. 2022-08-26 10:18:30 +12:00
template aix: Remove checks for very old OS versions 2022-08-07 09:36:01 -07:00
test Add optimized functions for linear search within byte arrays 2022-08-26 14:03:39 +07:00
timezone Remove fallbacks for strtoll, strtoull. 2022-08-06 09:59:51 +12:00
tools Enable RandomizedBaseAddress (ASLR) on Windows with MSVC builds 2022-08-28 16:04:58 +09:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Remove unused configure variable. 2022-08-18 11:22:13 -04:00
Makefile.shlib aix: Fix SHLIB_EXPORTS reference in VPATH builds 2022-08-24 20:39:46 -07:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00