This is safer since it also protects the GOT from getting clobbered.

Signed-off-by: Jeff Layton <[email protected]>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to