summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libc-internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h
index 83eadc656..349aff750 100644
--- a/include/libc-internal.h
+++ b/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