PATCH: Increase the size of .data.rel section for -z relro check
H.J. Lu
hongjiu.lu@intel.com
Tue Jul 12 15:47:00 GMT 2011
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 {
More information about the Libc-alpha
mailing list