From: Richard Henderson Date: Fri, 26 Mar 2010 16:51:57 +0000 (-0700) Subject: Mark _dl_random attribute_relro in the header file. X-Git-Tag: fedora/glibc-2.11.90-17~2^2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d09580b1e6c3158fd00a41e71ec5a4ace9f0a2fe;p=thirdparty%2Fglibc.git 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 --- diff --git a/ChangeLog b/ChangeLog index 367eafd7add..cce81c2690d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-03-26 Richard Henderson + + * sysdeps/generic/ldsodefs.h (_dl_random): Mark attribute_relro; + 2010-03-26 Richard Henderson * stdio-common/psiginfo.c (psiginfo): Fix printf format diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index 230c39a631b..a14e8af92f4 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 */