diff mbox

autoconf: enable full RELRO in cifs-utils binaries

Message ID 1354795015-30078-1-git-send-email-jlayton@samba.org (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Layton Dec. 6, 2012, 11:56 a.m. UTC
This is safer since it also protects the GOT from getting clobbered.

Signed-off-by: Jeff Layton <jlayton@samba.org>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index d97c51b..78acd43 100644
--- a/configure.ac
+++ b/configure.ac
@@ -114,7 +114,7 @@  fi
 AC_SUBST([PIE_CFLAGS])
 
 if test $enable_relro != "no"; then
-	RELRO_CFLAGS="-Wl,-z,relro"
+	RELRO_CFLAGS="-Wl,-z,relro,-z,now"
 else
 	RELRO_CFLAGS=""
 fi