Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc CERROR is now hidden so no need to call it via the PLT
details: https://anonhg.NetBSD.org/src/rev/92df78696787
branches: trunk
changeset: 788972:92df78696787
user: matt <matt%NetBSD.org@localhost>
date: Thu Aug 01 05:54:24 2013 +0000
description:
CERROR is now hidden so no need to call it via the PLT
diffstat:
lib/libc/arch/arm/sys/__clone.S | 6 +++---
lib/libc/arch/arm/sys/__vfork14.S | 4 ++--
lib/libc/arch/arm/sys/brk.S | 4 ++--
lib/libc/arch/arm/sys/cerror.S | 6 +-----
lib/libc/arch/arm/sys/getcontext.S | 6 +++---
lib/libc/arch/arm/sys/pipe.S | 4 ++--
lib/libc/arch/arm/sys/ptrace.S | 4 ++--
lib/libc/compat/arch/arm/sys/compat_Ovfork.S | 4 ++--
lib/libc/compat/arch/arm/sys/compat_sigpending.S | 4 ++--
lib/libc/compat/arch/arm/sys/compat_sigprocmask.S | 4 ++--
lib/libc/compat/arch/arm/sys/compat_sigsuspend.S | 4 ++--
11 files changed, 23 insertions(+), 27 deletions(-)
diffs (214 lines):
diff -r 1af915d0b009 -r 92df78696787 lib/libc/arch/arm/sys/__clone.S
--- a/lib/libc/arch/arm/sys/__clone.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/arch/arm/sys/__clone.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __clone.S,v 1.6 2006/04/24 19:00:30 snj Exp $ */
+/* $NetBSD: __clone.S,v 1.7 2013/08/01 05:54:24 matt Exp $ */
/*
* Copyright (c) 2001 Christopher Gilbert
@@ -51,7 +51,7 @@
mov r0, r2
SYSTRAP(__clone)
- bcs PIC_SYM(CERROR, PLT)
+ bcs CERROR
/*
* r1 and r0 are the same as from fork:
@@ -90,4 +90,4 @@
/* error handler if func or stack is NULL */
.Leinval:
mov R0, #EINVAL
- b PIC_SYM(CERROR, PLT)
+ b CERROR
diff -r 1af915d0b009 -r 92df78696787 lib/libc/arch/arm/sys/__vfork14.S
--- a/lib/libc/arch/arm/sys/__vfork14.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/arch/arm/sys/__vfork14.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __vfork14.S,v 1.7 2004/08/21 11:30:17 rearnsha Exp $ */
+/* $NetBSD: __vfork14.S,v 1.8 2013/08/01 05:54:24 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -46,7 +46,7 @@
ENTRY(__vfork14)
mov r2, r14
SYSTRAP(__vfork14)
- bcs PIC_SYM(CERROR, PLT)
+ bcs CERROR
mov r14, r2
sub r1, r1, #1 /* r1 == 0xffffffff if parent, 0 if child */
and r0, r0, r1 /* r0 == 0 if child, else unchanged */
diff -r 1af915d0b009 -r 92df78696787 lib/libc/arch/arm/sys/brk.S
--- a/lib/libc/arch/arm/sys/brk.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/arch/arm/sys/brk.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: brk.S,v 1.10 2013/08/01 05:32:33 matt Exp $ */
+/* $NetBSD: brk.S,v 1.11 2013/08/01 05:54:24 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -73,7 +73,7 @@
movcc r0, r1
mov r2, r0
SYSTRAP(break)
- bcs PIC_SYM(CERROR, PLT)
+ bcs CERROR
#ifdef PIC
ldr r1, .Lcurbrk
diff -r 1af915d0b009 -r 92df78696787 lib/libc/arch/arm/sys/cerror.S
--- a/lib/libc/arch/arm/sys/cerror.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/arch/arm/sys/cerror.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cerror.S,v 1.8 2012/02/27 12:26:21 joerg Exp $ */
+/* $NetBSD: cerror.S,v 1.9 2013/08/01 05:54:24 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -33,10 +33,6 @@
#include "SYS.h"
-#ifdef PIC
- .protected CERROR
-#endif
-
ASENTRY(CERROR)
#ifdef _REENTRANT
stmfd sp!, {r4, lr}
diff -r 1af915d0b009 -r 92df78696787 lib/libc/arch/arm/sys/getcontext.S
--- a/lib/libc/arch/arm/sys/getcontext.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/arch/arm/sys/getcontext.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getcontext.S,v 1.8 2013/04/30 19:42:56 skrll Exp $ */
+/* $NetBSD: getcontext.S,v 1.9 2013/08/01 05:54:24 matt Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
#include "assym.h"
#if defined(SYSLIBC_SCCS) && !defined(lint)
- RCSID("$NetBSD: getcontext.S,v 1.8 2013/04/30 19:42:56 skrll Exp $")
+ RCSID("$NetBSD: getcontext.S,v 1.9 2013/08/01 05:54:24 matt Exp $")
#endif /* SYSLIBC_SCCS && !lint */
#ifdef WEAK_ALIAS
@@ -43,7 +43,7 @@
ENTRY(_getcontext)
mov r2, r0 /* Must save argument pointer. */
SYSTRAP (getcontext)
- bcs PIC_SYM(CERROR, PLT)
+ bcs CERROR
str lr, [r2, #_UC_REGS_PC] /* Adjust PC. */
#ifdef SOFTFLOAT
/* Ahem. */
diff -r 1af915d0b009 -r 92df78696787 lib/libc/arch/arm/sys/pipe.S
--- a/lib/libc/arch/arm/sys/pipe.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/arch/arm/sys/pipe.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pipe.S,v 1.6 2004/08/21 11:30:17 rearnsha Exp $ */
+/* $NetBSD: pipe.S,v 1.7 2013/08/01 05:54:24 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -40,7 +40,7 @@
ENTRY(_pipe)
mov r2, r0
SYSTRAP(pipe)
- bcs PIC_SYM(CERROR, PLT)
+ bcs CERROR
str r0, [r2, #0x0000]
str r1, [r2, #0x0004]
mov r0, #0x00000000
diff -r 1af915d0b009 -r 92df78696787 lib/libc/arch/arm/sys/ptrace.S
--- a/lib/libc/arch/arm/sys/ptrace.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/arch/arm/sys/ptrace.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptrace.S,v 1.8 2004/08/21 11:30:17 rearnsha Exp $ */
+/* $NetBSD: ptrace.S,v 1.9 2013/08/01 05:54:24 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -60,7 +60,7 @@
#endif /* _REENTRANT */
SYSTRAP(ptrace)
- bcs PIC_SYM(CERROR, PLT)
+ bcs CERROR
RET
#ifndef _REENTRANT
diff -r 1af915d0b009 -r 92df78696787 lib/libc/compat/arch/arm/sys/compat_Ovfork.S
--- a/lib/libc/compat/arch/arm/sys/compat_Ovfork.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/compat/arch/arm/sys/compat_Ovfork.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_Ovfork.S,v 1.1 2005/10/16 17:27:50 christos Exp $ */
+/* $NetBSD: compat_Ovfork.S,v 1.2 2013/08/01 05:54:24 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -49,7 +49,7 @@
ENTRY(vfork)
mov r2, r14
SYSTRAP(vfork)
- bcs PIC_SYM(CERROR, PLT)
+ bcs CERROR
mov r14, r2
sub r1, r1, #1 /* r1 == 0xffffffff if parent, 0 if child */
and r0, r0, r1 /* r0 == 0 if child, else unchanged */
diff -r 1af915d0b009 -r 92df78696787 lib/libc/compat/arch/arm/sys/compat_sigpending.S
--- a/lib/libc/compat/arch/arm/sys/compat_sigpending.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/compat/arch/arm/sys/compat_sigpending.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_sigpending.S,v 1.1 2005/10/16 17:27:50 christos Exp $ */
+/* $NetBSD: compat_sigpending.S,v 1.2 2013/08/01 05:54:24 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -39,7 +39,7 @@
ENTRY(sigpending)
mov r2, r0
SYSTRAP(compat_13_sigpending13)
- bcs PIC_SYM(CERROR, PLT)
+ bcs CERROR
str r0, [r2]
mov r0, #0x00000000
RET
diff -r 1af915d0b009 -r 92df78696787 lib/libc/compat/arch/arm/sys/compat_sigprocmask.S
--- a/lib/libc/compat/arch/arm/sys/compat_sigprocmask.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/compat/arch/arm/sys/compat_sigprocmask.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_sigprocmask.S,v 1.1 2005/10/16 17:27:50 christos Exp $ */
+/* $NetBSD: compat_sigprocmask.S,v 1.2 2013/08/01 05:54:24 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -42,7 +42,7 @@
moveq r1, #0x00000000
ldrne r1, [r1]
SYSTRAP(compat_13_sigprocmask13)
- bcs PIC_SYM(CERROR, PLT)
+ bcs CERROR
teq r2, #0x00000000
strne r0, [r2]
mov r0, #0x00000000
diff -r 1af915d0b009 -r 92df78696787 lib/libc/compat/arch/arm/sys/compat_sigsuspend.S
--- a/lib/libc/compat/arch/arm/sys/compat_sigsuspend.S Thu Aug 01 05:32:33 2013 +0000
+++ b/lib/libc/compat/arch/arm/sys/compat_sigsuspend.S Thu Aug 01 05:54:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_sigsuspend.S,v 1.1 2005/10/16 17:27:50 christos Exp $ */
+/* $NetBSD: compat_sigsuspend.S,v 1.2 2013/08/01 05:54:24 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -39,6 +39,6 @@
ENTRY(sigsuspend)
ldr r0, [r0]
SYSTRAP(compat_13_sigsuspend13)
- bcs PIC_SYM(CERROR, PLT)
+ bcs CERROR
mov r0, #0x00000000
RET
Home |
Main Index |
Thread Index |
Old Index