Skip to content

Commit

Permalink
Bitcoin-Qt (Windows only): add ASLR and DEP linker flags
Browse files Browse the repository at this point in the history
- for extra security on Windows: enable ASLR and DEP via GCC linker flags

GCC linker flag description:
--dynamicbase  The image base address may be relocated using address space layout randomization (ASLR). This feature was introduced with MS Windows Vista for i386 PE targets.
--nxcompat The image is compatible with the Data Execution Prevention.
This feature was introduced with MS Windows XP SP2 for i386 PE targets.
  • Loading branch information
Philip Kaufmann authored and MitchellCash committed Dec 13, 2015
1 parent 65b923b commit 45bd2f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions paycoin.pro
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ contains(RELEASE, 1) {
}
}

# for extra security on Windows: enable ASLR and DEP via GCC linker flags
win32:QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat

# use: qmake "USE_QRCODE=1"
# libqrencode (http://fukuchi.org/works/qrencode/index.en.html) must be installed for support
contains(USE_QRCODE, 1) {
Expand Down

0 comments on commit 45bd2f0

Please sign in to comment.