summaryrefslogtreecommitdiff
path: root/lib/libc/arch/hppa64
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-08-26 01:54:10 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-08-26 01:54:10 +0000
commit198876b2957c4927bee119d959edcf90dca5326c (patch)
tree4a831d17b19abcb97599a52fc3557d96e9aef824 /lib/libc/arch/hppa64
parentac2a6151bdd6d28dc4f8c26284cc08a9d15466dd (diff)
Hide many (194!) symbols that nothing should be using.
Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
Diffstat (limited to 'lib/libc/arch/hppa64')
-rw-r--r--lib/libc/arch/hppa64/sys/brk.S20
-rw-r--r--lib/libc/arch/hppa64/sys/exect.S34
-rw-r--r--lib/libc/arch/hppa64/sys/sbrk.S8
3 files changed, 16 insertions, 46 deletions
diff --git a/lib/libc/arch/hppa64/sys/brk.S b/lib/libc/arch/hppa64/sys/brk.S
index 15376196eae..9ba588e11ab 100644
--- a/lib/libc/arch/hppa64/sys/brk.S
+++ b/lib/libc/arch/hppa64/sys/brk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: brk.S,v 1.5 2012/08/22 17:19:34 pascal Exp $ */
+/* $OpenBSD: brk.S,v 1.6 2015/08/26 01:54:09 guenther Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -32,18 +32,20 @@
.import end, data
.data
- .export minbrk, data
-minbrk
+ .export __minbrk, data
+__minbrk
.long end
-SYSENTRY(brk)
+WEAK_ALIAS(brk, _brk)
+
+LEAF_ENTRY(_brk)
#ifdef __PIC__
- addil LT%minbrk, %r19
- ldd RT%minbrk(%r1), arg4
+ addil LT%__minbrk, %r19
+ ldd RT%__minbrk(%r1), arg4
ldd 0(arg4), arg5
#else
- ldil L%minbrk, arg4
- ldd R%minbrk(arg4), arg5
+ ldil L%__minbrk, arg4
+ ldd R%__minbrk(arg4), arg5
#endif
sub,<< arg5, %arg0, %r0
copy arg5, %arg0
@@ -62,7 +64,7 @@ SYSENTRY(brk)
bv %r0(%rp)
std %arg0, R%__curbrk(arg4)
#endif
-SYSEXIT(brk)
+EXIT(_brk)
.end
diff --git a/lib/libc/arch/hppa64/sys/exect.S b/lib/libc/arch/hppa64/sys/exect.S
deleted file mode 100644
index 749a2de8e81..00000000000
--- a/lib/libc/arch/hppa64/sys/exect.S
+++ /dev/null
@@ -1,34 +0,0 @@
-/* $OpenBSD: exect.S,v 1.2 2005/08/07 16:40:14 espie Exp $ */
-
-/*
- * Copyright (c) 1999 Michael Shalayeff
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
- * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "SYS.h"
-
-/* we do no tracing yet */
-PSEUDO(exect,execve)
-
- .end
diff --git a/lib/libc/arch/hppa64/sys/sbrk.S b/lib/libc/arch/hppa64/sys/sbrk.S
index df3e303e40f..5a8c68c226f 100644
--- a/lib/libc/arch/hppa64/sys/sbrk.S
+++ b/lib/libc/arch/hppa64/sys/sbrk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbrk.S,v 1.5 2012/08/22 17:19:34 pascal Exp $ */
+/* $OpenBSD: sbrk.S,v 1.6 2015/08/26 01:54:09 guenther Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -35,7 +35,9 @@
__curbrk
.long end
-SYSENTRY(sbrk)
+WEAK_ALIAS(sbrk, _sbrk)
+
+LEAF_ENTRY(_sbrk)
#ifdef __PIC__
addil LT%__curbrk, %r19
ldd RT%__curbrk(%r1), %arg3
@@ -61,7 +63,7 @@ SYSENTRY(sbrk)
bv %r0(%rp)
std %arg0, 0(%arg3)
-SYSEXIT(sbrk)
+EXIT(_sbrk)
.end