Make this build on platforms with stack protection

Adapted from a Gentoo patch. I guess this actually builds now, but it
may be better to have a less hacky solution.
This commit is contained in:
David Benjamin 2011-03-24 22:32:20 -04:00
parent 1f8b9521b8
commit d8cfb62dfb
2 changed files with 5 additions and 1 deletions

View File

@ -1,8 +1,8 @@
#include "config.h"
#ifdef TARGET_LIBC_PROVIDES_SSP
void __sprintf_chk() {} ;
void __stack_chk_fail() {} ;
void __stack_chk_fail_local() {} ;
#endif
void _Exit() {} ;

View File

@ -98,3 +98,7 @@ __libc_csu_fini (void)
_fini ();
}
#ifdef TARGET_LIBC_PROVIDES_SSP
void __stack_chk_fail_local (void) {}
#endif