summaryrefslogtreecommitdiff
path: root/libexec/ld.so/sparc64/ldasm.S
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-09-25 06:57:04 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-09-25 06:57:04 +0000
commit4fc130695b83b70c2418fbec6673b198e612a3cd (patch)
tree56510ca99bf44beccf898e832cf33226ef44388f /libexec/ld.so/sparc64/ldasm.S
parentb65cbbd89ac9082171e8c9b867e5decabe61c582 (diff)
Do mmap the right way.
Diffstat (limited to 'libexec/ld.so/sparc64/ldasm.S')
-rw-r--r--libexec/ld.so/sparc64/ldasm.S11
1 files changed, 6 insertions, 5 deletions
diff --git a/libexec/ld.so/sparc64/ldasm.S b/libexec/ld.so/sparc64/ldasm.S
index 8768fdec6ed..53f1713080f 100644
--- a/libexec/ld.so/sparc64/ldasm.S
+++ b/libexec/ld.so/sparc64/ldasm.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldasm.S,v 1.6 2001/09/25 06:34:31 art Exp $ */
+/* $OpenBSD: ldasm.S,v 1.7 2001/09/25 06:57:03 art Exp $ */
/* $NetBSD: rtld_start.S,v 1.5 2001/08/14 22:17:48 eeh Exp $ */
/*
@@ -300,15 +300,16 @@ _dl_getuid:
.section ".text"
.align 4
- .global _dl_mmap
- .type _dl_mmap,@function
-_dl_mmap:
- mov SYS_mmap | SYSCALL_G2RFLAG, %g1 ! calling sys_mmap
+ .global _dl___syscall
+ .type _dl___syscall,@function
+_dl___syscall:
+ mov SYS___syscall | SYSCALL_G2RFLAG, %g1 ! call sys_exit
add %o7, 8, %g2 ! just return on sucess
t ST_SYSCALL ! off to wonderland
retl
sub %g0, %o0, %o0 ! error: result = -errno
+
.section ".text"
.align 4
.global _dl_munmap