summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/vax
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/vax
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/vax')
-rw-r--r--lib/libc/arch/vax/sys/cerror.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/arch/vax/sys/cerror.S b/lib/libc/arch/vax/sys/cerror.S
index f2c9f5ec411..8f6e387ad33 100644
--- a/lib/libc/arch/vax/sys/cerror.S
+++ b/lib/libc/arch/vax/sys/cerror.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: cerror.S,v 1.7 2008/05/21 20:39:32 miod Exp $ */
+/* $OpenBSD: cerror.S,v 1.8 2011/04/04 12:42:39 guenther Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -30,8 +30,10 @@
#include "SYS.h"
+WEAK_ALIAS(_C_LABEL(_cerror), _C_LABEL(__cerror))
+
.globl _C_LABEL(errno)
-_C_LABEL(_cerror):
+_C_LABEL(__cerror):
movl r0,_C_LABEL(errno)
mnegl $1,r0
mnegl $1,r1