diff mbox

autoconf: enable full RELRO in cifs-utils binaries

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

Commit Message

Jeff Layton Dec. 7, 2012, 3:40 p.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(-)

Comments

Jeff Layton Dec. 13, 2012, 1:48 p.m. UTC | #1
On Fri,  7 Dec 2012 10:40:25 -0500
Jeff Layton <jlayton@samba.org> wrote:

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

Merged...
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