svn commit: trunk/uClibc/include
psm at uclibc.org
psm at uclibc.org
Wed Sep 21 23:51:53 UTC 2005
Author: psm
Date: 2005-09-21 16:51:53 -0700 (Wed, 21 Sep 2005)
New Revision: 11551
Log:
add attribute_relro, should be unconditional, if gcc/ld supports it
Modified:
trunk/uClibc/include/libc-internal.h
Changeset:
Modified: trunk/uClibc/include/libc-internal.h
===================================================================
--- trunk/uClibc/include/libc-internal.h 2005-09-21 23:49:33 UTC (rev 11550)
+++ trunk/uClibc/include/libc-internal.h 2005-09-21 23:51:53 UTC (rev 11551)
@@ -94,6 +94,12 @@
# define attribute_hidden
#endif
+#ifdef __UCLIBC_BUILD_RELRO__
+# define attribute_relro __attribute__ ((section (".data.rel.ro")))
+#else
+# define attribute_relro
+#endif
+
/* --- this is added to integrate linuxthreads */
#define __USE_UNIX98 1
More information about the uClibc-cvs
mailing list