summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/stack_protector.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-12-27 03:22:27 +0000
committerderaadt <deraadt@openbsd.org>2013-12-27 03:22:27 +0000
commit9d256a1d05cfffe16a4413f90d195c79a0a9065c (patch)
treec84363dcb76939a9e0e764be606184644a9b4c26 /lib/libc/sys/stack_protector.c
parentAdd HISTORY and AUTHORS; triggered by a shorter patch from bcallah@. (diff)
downloadwireguard-openbsd-9d256a1d05cfffe16a4413f90d195c79a0a9065c.tar.xz
wireguard-openbsd-9d256a1d05cfffe16a4413f90d195c79a0a9065c.zip
remove non-openbsd.randomdata parts
ok miod matthew
Diffstat (limited to 'lib/libc/sys/stack_protector.c')
-rw-r--r--lib/libc/sys/stack_protector.c13
1 files changed, 1 insertions, 12 deletions
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;