Browse Source

add attribute_relro, should be unconditional, if gcc/ld supports it

Peter S. Mazinger 18 years ago
parent
commit
a9182335e6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      include/libc-internal.h

+ 6 - 0
include/libc-internal.h

@@ -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