From: Christian Brauner Date: Mon, 11 Mar 2019 22:30:41 +0000 (+0100) Subject: compiler: -fasynchronous-unwind-tables hardening X-Git-Tag: lxc-3.2.0~116^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9248f7162875e26abca94185d34c235ac0a48de;p=thirdparty%2Flxc.git compiler: -fasynchronous-unwind-tables hardening Increased reliability of backtraces. Signed-off-by: Christian Brauner --- diff --git a/configure.ac b/configure.ac index d43dabc0d..fedffe3c9 100644 --- a/configure.ac +++ b/configure.ac @@ -719,6 +719,7 @@ AX_CHECK_COMPILE_FLAG([-Werror=shift-count-overflow], [CFLAGS="$CFLAGS -Werror=s AX_CHECK_COMPILE_FLAG([-Werror=shift-overflow=2], [CFLAGS="$CFLAGS -Werror=shift-overflow=2"],,[-Werror]) AX_CHECK_COMPILE_FLAG([-Wdate-time], [CFLAGS="$CFLAGS -Wdate-time"],,[-Werror]) AX_CHECK_COMPILE_FLAG([-Wnested-externs], [CFLAGS="$CFLAGS -Wnested-externs"],,[-Werror]) +AX_CHECK_COMPILE_FLAG([-fasynchronous-unwind-tables], [CFLAGS="$CFLAGS -fasynchronous-unwind-tables"],,[-Werror]) AX_CHECK_LINK_FLAG([-z relro], [LDLAGS="$LDLAGS -z relro"],,[]) AX_CHECK_LINK_FLAG([-z now], [LDLAGS="$LDLAGS -z now"],,[])