diff options
author | 2011-04-04 12:42:39 +0000 | |
---|---|---|
committer | 2011-04-04 12:42:39 +0000 | |
commit | 9372e0f08d36e465dbbf8ed7d81cada3fa4b57ab (patch) | |
tree | 8d94440db80d44dadc263ef20aa74460d6eae930 /lib/libc/arch/i386/sys | |
parent | Better. (diff) | |
download | wireguard-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.S | 7 |
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 |