summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-09-21 23:51:53 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-09-21 23:51:53 +0000
commita9182335e66f3607f81e9557c64a311028508d65 (patch)
tree3aca39c3d6b6775f48c0a8c68ce9bbec24ff9681 /include
parent34204b59b19562fe90e6505257d2f42ec5a2b76d (diff)
add attribute_relro, should be unconditional, if gcc/ld supports it
Diffstat (limited to 'include')
-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