summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/i386/sys
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2011-04-04 12:42:39 +0000
committerguenther <guenther@openbsd.org>2011-04-04 12:42:39 +0000
commit9372e0f08d36e465dbbf8ed7d81cada3fa4b57ab (patch)
tree8d94440db80d44dadc263ef20aa74460d6eae930 /lib/libc/arch/i386/sys
parentBetter. (diff)
downloadwireguard-openbsd-9372e0f08d36e465dbbf8ed7d81cada3fa4b57ab.tar.xz
wireguard-openbsd-9372e0f08d36e465dbbf8ed7d81cada3fa4b57ab.zip
Move __cerror to ___cerror with a weak alias so that rthreads can override it.
On mips64, also correct the name called from plain cerror to __cerror. "looks correct" miod@
Diffstat (limited to 'lib/libc/arch/i386/sys')
-rw-r--r--lib/libc/arch/i386/sys/cerror.S7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/arch/i386/sys/cerror.S b/lib/libc/arch/i386/sys/cerror.S
index 5033c2f41ce..4cffd703531 100644
--- a/lib/libc/arch/i386/sys/cerror.S
+++ b/lib/libc/arch/i386/sys/cerror.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: cerror.S,v 1.7 2005/08/07 11:30:38 espie Exp $ */
+/* $OpenBSD: cerror.S,v 1.8 2011/04/04 12:42:39 guenther Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -34,7 +34,10 @@
#include "SYS.h"
.globl _C_LABEL(errno)
-_ENTRY(CERROR)
+
+WEAK_ALIAS(CERROR, _CERROR)
+
+_ENTRY(_CERROR)
#ifdef PIC
PIC_PROLOGUE
movl PIC_GOT(_C_LABEL(errno)),%ecx