This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

__libc_enable_secure fallout


These declarations also need to be marked attribute_relro.

Ok?

I think this is the last of the patches hanging about in my tree.


r~


2004-01-16  Richard Henderson  <rth@redhat.com>

	* include/unistd.h (__libc_enable_secure): Mark attribute_relro.
	(__libc_enable_secure_internal): Likewise.

Index: include/unistd.h
===================================================================
RCS file: /cvs/glibc/libc/include/unistd.h,v
retrieving revision 1.43
diff -c -p -d -u -r1.43 unistd.h
--- include/unistd.h	6 May 2003 06:31:37 -0000	1.43
+++ include/unistd.h	16 Jan 2004 08:00:07 -0000
@@ -139,11 +139,11 @@ libc_hidden_proto (__sbrk)
    extra security should be used.  When this is set the dynamic linker
    and some functions contained in the C library ignore various
    environment variables that normally affect them.  */
-extern int __libc_enable_secure;
+extern int __libc_enable_secure attribute_relro;
 extern int __libc_enable_secure_decided;
 #ifdef IS_IN_rtld
 /* XXX The #ifdef should go.  */
-extern int __libc_enable_secure_internal attribute_hidden;
+extern int __libc_enable_secure_internal attribute_relro attribute_hidden;
 #endif
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]