Skip to content

Commit

Permalink
build: supply -Wl,--high-entropy-va
Browse files Browse the repository at this point in the history
This should enable high-entropy ASLR on 64-bit targets, for better
mitigation of exploits.
  • Loading branch information
laanwj authored and str4d committed Dec 1, 2017
1 parent 41b2842 commit 8a93215
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ if test x$use_hardening != xno; then
# These are only available on Windows.
AX_CHECK_LINK_FLAG([[-Wl,--dynamicbase]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,--dynamicbase"],[AC_MSG_ERROR(Cannot enable --dynamicbase)])
AX_CHECK_LINK_FLAG([[-Wl,--nxcompat]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,--nxcompat"],[AC_MSG_ERROR(Cannot enable --nxcompat)])
AX_CHECK_LINK_FLAG([[-Wl,--high-entropy-va]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,--high-entropy-va"],[AC_MSG_ERROR(Cannot enable ASLR)])
fi

case $host in
Expand Down

0 comments on commit 8a93215

Please sign in to comment.