فهرست منبع

Add check, so we are sure that the file is correctly built, if the system is ssp enabled

Peter S. Mazinger 19 سال پیش
والد
کامیت
a37cc0c3d4
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      ldso/ldso/ldso.c

+ 3 - 0
ldso/ldso/ldso.c

@@ -86,6 +86,9 @@ static int nlist; /* # items in init_fini_list */
 extern void _start(void);
 extern void _start(void);
 
 
 #ifdef __UCLIBC_HAS_SSP__
 #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>
 #include <dl-osinfo.h>
 #ifndef THREAD_SET_STACK_GUARD
 #ifndef THREAD_SET_STACK_GUARD
 /* Only exported for architectures that don't store the stack guard canary
 /* Only exported for architectures that don't store the stack guard canary