diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-09-21 23:51:53 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-09-21 23:51:53 +0000 |
commit | a9182335e66f3607f81e9557c64a311028508d65 (patch) | |
tree | 3aca39c3d6b6775f48c0a8c68ce9bbec24ff9681 | |
parent | 34204b59b19562fe90e6505257d2f42ec5a2b76d (diff) |
add attribute_relro, should be unconditional, if gcc/ld supports it
-rw-r--r-- | include/libc-internal.h | 6 |
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 |