diff options
-rw-r--r-- | ldso/ldso/ldso.c | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/dl-osinfo.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c index 266313543..fac66ba9d 100644 --- a/ldso/ldso/ldso.c +++ b/ldso/ldso/ldso.c @@ -86,9 +86,6 @@ static int nlist; /* # items in init_fini_list */ extern void _start(void); #ifdef __UCLIBC_HAS_SSP__ -#ifdef __SSP__ -#error "file must not be compiled with stack protection enabled on it. Use -fno-stack-protector" -#endif #include <dl-osinfo.h> #ifndef THREAD_SET_STACK_GUARD /* Only exported for architectures that don't store the stack guard canary diff --git a/libc/sysdeps/linux/common/dl-osinfo.h b/libc/sysdeps/linux/common/dl-osinfo.h index ee3e2ce99..4976b2b46 100644 --- a/libc/sysdeps/linux/common/dl-osinfo.h +++ b/libc/sysdeps/linux/common/dl-osinfo.h @@ -24,6 +24,9 @@ #define GETTIMEOFDAY gettimeofday #endif #else +#ifdef __SSP__ +#error "file must not be compiled with stack protection enabled on it. Use -fno-stack-protector" +#endif #ifndef __SSP_QUICK_CANARY__ #define OPEN _dl_open #define READ _dl_read |