diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-08-11 23:01:31 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-08-11 23:01:31 +0000 |
commit | 38a1d76437a2e1a54082b37d0b6499783a9d11ce (patch) | |
tree | af2392698b05d7cac1192aecab0f8e490d9674f8 /lib/libc/arch/sparc/sys/cerror.S | |
parent | 704944d490274d2f942b4239951d409bbb3156af (diff) |
Two touches to make this work with ELF.
- use _C_LABEL(__cerror) and not cerror to avoid polluting the name space.
- Use weak symbols for libc_r syscalls.
Diffstat (limited to 'lib/libc/arch/sparc/sys/cerror.S')
-rw-r--r-- | lib/libc/arch/sparc/sys/cerror.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/arch/sparc/sys/cerror.S b/lib/libc/arch/sparc/sys/cerror.S index a37e229e5ca..9795e5a5787 100644 --- a/lib/libc/arch/sparc/sys/cerror.S +++ b/lib/libc/arch/sparc/sys/cerror.S @@ -37,24 +37,24 @@ #if defined(SYSLIBC_SCCS) .text - .asciz "$OpenBSD: cerror.S,v 1.2 1996/08/19 08:18:02 tholo Exp $" + .asciz "$OpenBSD: cerror.S,v 1.3 2002/08/11 23:01:30 art Exp $" #endif /* SYSLIBC_SCCS */ #include "DEFS.h" #include "SYS.h" - .globl _errno + .globl _C_LABEL(errno) #ifdef PIC -FUNC(cerror) - ld [%g1 + _errno], %g1 +FUNC(_C_LABEL(__cerror)) + ld [%g1 + _C_LABEL(errno)], %g1 st %o0, [%g1] mov -1, %o0 retl mov -1, %o1 #else -FUNC(cerror) - sethi %hi(_errno), %g1 - st %o0, [%g1 + %lo(_errno)] +FUNC(_C_LABEL(__cerror)) + sethi %hi(_C_LABEL(errno)), %g1 + st %o0, [%g1 + %lo(_C_LABEL(errno))] mov -1, %o0 retl mov -1, %o1 |