]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Mark _dl_random attribute_relro in the header file.
authorRichard Henderson <rth@twiddle.net>
Fri, 26 Mar 2010 16:51:57 +0000 (09:51 -0700)
committerRichard Henderson <rth@twiddle.net>
Fri, 26 Mar 2010 16:51:57 +0000 (09:51 -0700)
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
sysdeps/generic/ldsodefs.h

index 367eafd7addf8761a67af503745fa071fe498668..cce81c2690db108b8246739dc7935324bc80706f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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
index 230c39a631b2adbd3ba2bb1234279a8d067e5939..a14e8af92f41dae141f06543c733e205908dd81d 100644 (file)
@@ -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 */