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>
This commit is contained in:
parent
68cf34be99
commit
d09580b1e6
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user