aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/embeddable-dll-service
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-25 11:18:00 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-25 13:32:27 +0200
commit0a77b5c2c122892402564fbbe5e2d9a1adbc63dc (patch)
tree067787a072d64fc98d36a4056c253c700d81d8d0 /embeddable-dll-service
parentui: do not scroll list view horizontally (diff)
downloadwireguard-windows-0a77b5c2c122892402564fbbe5e2d9a1adbc63dc.tar.xz
wireguard-windows-0a77b5c2c122892402564fbbe5e2d9a1adbc63dc.zip
build: enable aslr and dep
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'embeddable-dll-service')
-rw-r--r--embeddable-dll-service/build.bat3
1 files changed, 2 insertions, 1 deletions
diff --git a/embeddable-dll-service/build.bat b/embeddable-dll-service/build.bat
index 14486696..588e2e18 100644
--- a/embeddable-dll-service/build.bat
+++ b/embeddable-dll-service/build.bat
@@ -18,8 +18,9 @@ if exist ..\.deps\prepared goto :build
set GOROOT=%BUILDDIR%..\.deps\go
set CGO_ENABLED=1
set CGO_CFLAGS=-O3 -Wall -Wno-unused-function -Wno-switch -std=gnu11 -DWINVER=0x0601
- set CGO_LDFLAGS=-Wl,--major-os-version=6 -Wl,--minor-os-version=1 -Wl,--major-subsystem-version=6 -Wl,--minor-subsystem-version=1
+ set CGO_LDFLAGS=-Wl,--major-os-version=6 -Wl,--minor-os-version=1 -Wl,--major-subsystem-version=6 -Wl,--minor-subsystem-version=1 -Wl,--tsaware -Wl,--dynamicbase -Wl,--nxcompat -Wl,--export-all-symbols
call :build_plat x86 i686 386 || goto :error
+ set CGO_LDFLAGS=%CGO_LDFLAGS% -Wl,--high-entropy-va
call :build_plat amd64 x86_64 amd64 || goto :error
:success