diff mbox

ARM: Allow auto-detection of linker relro feature

Message ID 1399642835-31210-1-git-send-email-will.newton@linaro.org
State Accepted
Headers show

Commit Message

Will Newton May 9, 2014, 1:40 p.m. UTC
Set values for libc_commonpagesize and libc_relro_required for the
ARM port to enable relro by default and suppress a warning at
configure time.

ChangeLog:

2014-05-09  Will Newton  <will.newton@linaro.org>

	* sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
	and libc_relro_required for ARM.
	* sysdeps/arm/preconfigure: Regenerate.
---
 sysdeps/arm/preconfigure    | 8 ++++++++
 sysdeps/arm/preconfigure.ac | 8 ++++++++
 2 files changed, 16 insertions(+)

Comments

Joseph Myers May 9, 2014, 3:48 p.m. UTC | #1
On Fri, 9 May 2014, Will Newton wrote:

> Set values for libc_commonpagesize and libc_relro_required for the
> ARM port to enable relro by default and suppress a warning at
> configure time.

OK.
diff mbox

Patch

diff --git a/sysdeps/arm/preconfigure b/sysdeps/arm/preconfigure
index b3124ed..74869b1 100644
--- a/sysdeps/arm/preconfigure
+++ b/sysdeps/arm/preconfigure
@@ -61,3 +61,11 @@  $as_echo "$as_me: WARNING: arm/preconfigure: Did not find ARM architecture type;
 
   machine=arm/$machine
 esac
+
+case "$machine" in
+arm*)
+	# Parameters to allow auto-detection of -z relro.
+	libc_commonpagesize=0x1000
+	libc_relro_required=yes
+	;;
+esac
diff --git a/sysdeps/arm/preconfigure.ac b/sysdeps/arm/preconfigure.ac
index 39c8621..29a260c 100644
--- a/sysdeps/arm/preconfigure.ac
+++ b/sysdeps/arm/preconfigure.ac
@@ -56,3 +56,11 @@  arm*)
 
   machine=arm/$machine
 esac
+
+case "$machine" in
+arm*)
+	# Parameters to allow auto-detection of -z relro.
+	libc_commonpagesize=0x1000
+	libc_relro_required=yes
+	;;
+esac