This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Increase the size of .data.rel section for -z relro check
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Cc: Roland McGrath <roland at hack dot frob dot com>
- Date: Mon, 11 Jul 2011 16:08:33 -0700
- Subject: PATCH: Increase the size of .data.rel section for -z relro check
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
"z relro" check is very sentive to the size of .data.rel section.
This patch increases the size of .data.rel section to make it more
reliable. It is needed for x32 port, which I will submit later.
Thanks.
H.J.
---
2011-07-11 H.J. Lu <hongjiu.lu@intel.com>
* configure.in (-z relro check): Increase the size of .data.rel
section.
* configure: Regenerated.
diff --git a/configure b/configure
index a73313f..60bac86 100755
--- a/configure
+++ b/configure
@@ -6413,7 +6413,7 @@ else
int _start (void) { return 42; }
extern void _exit (int);
-const void *relro[] = { &_start, &_exit, 0 };
+const void *relro[] = { &_start, &_exit, 0, 0 };
_ACEOF
cat > conftest.awk <<\EOF
diff --git a/configure.in b/configure.in
index b2baf28..be2c518 100644
--- a/configure.in
+++ b/configure.in
@@ -1614,7 +1614,7 @@ EOF
AC_LANG_CONFTEST([AC_LANG_SOURCE([[
int _start (void) { return 42; }
extern void _exit (int);
-const void *relro[] = { &_start, &_exit, 0 };
+const void *relro[] = { &_start, &_exit, 0, 0 };
]])])
cat > conftest.awk <<\EOF
BEGIN {