diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-04-04 12:42:40 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-04-04 12:42:40 +0000 |
commit | 86ee920efe5f6ade8a027f63a78aa760ec51ea0e (patch) | |
tree | d44e4b31eb313e45598ff8206208f3fced53bb96 /lib/libc/arch/i386/sys/cerror.S | |
parent | b0d4b5d13abed165255bbbc41de8e216fbcd5a2d (diff) |
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/cerror.S')
-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 |