From a9182335e66f3607f81e9557c64a311028508d65 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 21 Sep 2005 23:51:53 +0000 Subject: add attribute_relro, should be unconditional, if gcc/ld supports it --- include/libc-internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 -- cgit v1.2.3