about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2010-03-26 09:51:57 -0700
committerRichard Henderson <rth@twiddle.net>2010-03-26 09:51:57 -0700
commitd09580b1e6c3158fd00a41e71ec5a4ace9f0a2fe (patch)
tree089e90889400bcb7cd647ddbbb97e3bfd4da9d04 /sysdeps/generic
parent68cf34be99d6d6241bd25a091d0e511121497ef9 (diff)
downloadglibc-d09580b1e6c3158fd00a41e71ec5a4ace9f0a2fe.tar.gz
glibc-d09580b1e6c3158fd00a41e71ec5a4ace9f0a2fe.tar.xz
glibc-d09580b1e6c3158fd00a41e71ec5a4ace9f0a2fe.zip
Mark _dl_random attribute_relro in the header file.
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>
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/ldsodefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 230c39a631..a14e8af92f 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 */