This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 4/4] Mark _dl_random attribute_relro in the header file.
- From: Richard Henderson <rth at twiddle dot net>
- To: libc-alpha at sourceware dot org
- Date: Fri, 26 Mar 2010 09:51:57 -0700
- Subject: [PATCH 4/4] Mark _dl_random attribute_relro in the header file.
- References: <cover.1269622476.git.rth@twiddle.net>
It's already so marked in dl-sysdep.c. Failure to so mark
in the header file leads the compiler to believe that the
variable should be addressable via the .sdata section.
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
ChangeLog | 4 ++++
sysdeps/generic/ldsodefs.h | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 367eafd..cce81c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2010-03-26 Richard Henderson <rth@redhat.com>
+ * sysdeps/generic/ldsodefs.h (_dl_random): Mark attribute_relro;
+
+2010-03-26 Richard Henderson <rth@redhat.com>
+
* stdio-common/psiginfo.c (psiginfo): Fix printf format
warning for si_band.
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 230c39a..a14e8af 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -748,7 +748,7 @@ extern int _dl_starting_up_internal attribute_hidden;
#endif
/* Random data provided by the kernel. */
-extern void *_dl_random attribute_hidden;
+extern void *_dl_random attribute_hidden attribute_relro;
/* OS-dependent function to open the zero-fill device. */
extern int _dl_sysdep_open_zero_fill (void); /* dl-sysdep.c */
--
1.6.6.1