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:
parent
1f8b9521b8
commit
d8cfb62dfb
|
@ -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() {} ;
|
||||
|
|
|
@ -98,3 +98,7 @@ __libc_csu_fini (void)
|
|||
|
||||
_fini ();
|
||||
}
|
||||
|
||||
#ifdef TARGET_LIBC_PROVIDES_SSP
|
||||
void __stack_chk_fail_local (void) {}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue