From: deraadt Date: Fri, 27 Dec 2013 03:22:27 +0000 (+0000) Subject: remove non-openbsd.randomdata parts X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9d256a1d05cfffe16a4413f90d195c79a0a9065c;p=openbsd remove non-openbsd.randomdata parts ok miod matthew --- diff --git a/lib/libc/sys/stack_protector.c b/lib/libc/sys/stack_protector.c index a6b147c1e22..da65b8195f2 100644 --- a/lib/libc/sys/stack_protector.c +++ b/lib/libc/sys/stack_protector.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stack_protector.c,v 1.12 2012/08/24 01:28:54 matthew Exp $ */ +/* $OpenBSD: stack_protector.c,v 1.13 2013/12/27 03:22:27 deraadt Exp $ */ /* * Copyright (c) 2002 Hiroaki Etoh, Federico G. Schwindt, and Miodrag Vallat. @@ -36,11 +36,7 @@ extern int __sysctl(int *, u_int, void *, size_t *, void *, size_t); -#ifdef __ELF__ long __guard[8] __attribute__((section(".openbsd.randomdata"))); -#else -long __guard[8] = {0, 0, 0, 0, 0, 0, 0, 0}; -#endif static void __guard_setup(void) __attribute__ ((constructor)); void __stack_smash_handler(char func[], int damaged __attribute__((unused))); @@ -55,13 +51,6 @@ __guard_setup(void) if (__guard[i] != 0) return; -#if 0 - { - struct syslog_data sdata = SYSLOG_DATA_INIT; - syslog_r(LOG_WARNING, &sdata, "__guard not initialized"); - } -#endif - mib[0] = CTL_KERN; mib[1] = KERN_ARND;