From 0dd1ccafa75e63f7688e6d55a0158d39ae3aa060 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 12 Mar 2011 22:01:27 +0100 Subject: libc-internal.h: use a consistent prototype for __stack_chk_fail Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/ssp-local.c | 2 -- libc/sysdeps/linux/common/ssp.c | 1 - 2 files changed, 3 deletions(-) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/common/ssp-local.c b/libc/sysdeps/linux/common/ssp-local.c index 202d956a5..6b1809a76 100644 --- a/libc/sysdeps/linux/common/ssp-local.c +++ b/libc/sysdeps/linux/common/ssp-local.c @@ -23,8 +23,6 @@ #include -extern void __stack_chk_fail (void) attribute_noreturn; - /* On some architectures, this helps needless PIC pointer setup that would be needed just for the __stack_chk_fail call. */ diff --git a/libc/sysdeps/linux/common/ssp.c b/libc/sysdeps/linux/common/ssp.c index df242cc69..07513e7c4 100644 --- a/libc/sysdeps/linux/common/ssp.c +++ b/libc/sysdeps/linux/common/ssp.c @@ -88,7 +88,6 @@ void __stack_smash_handler(char func[], int damaged) #endif #ifdef __UCLIBC_HAS_SSP__ -void __stack_chk_fail(void) attribute_noreturn __cold; void __stack_chk_fail(void) { static const char msg1[] = "stack smashing detected: "; -- cgit v1.2.3