Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/arm Change __cerror to be marked hidden and ch...



details:   https://anonhg.NetBSD.org/src/rev/13e2554c6f5e
branches:  trunk
changeset: 760838:13e2554c6f5e
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jan 14 06:12:16 2011 +0000

description:
Change __cerror to be marked hidden and change callers to avoid the PLT.

diffstat:

 lib/libc/arch/arm/SYS.h        |  4 ++--
 lib/libc/arch/arm/sys/cerror.S |  6 +++++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r b9c0249560dd -r 13e2554c6f5e lib/libc/arch/arm/SYS.h
--- a/lib/libc/arch/arm/SYS.h   Fri Jan 14 06:02:57 2011 +0000
+++ b/lib/libc/arch/arm/SYS.h   Fri Jan 14 06:12:16 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: SYS.h,v 1.9 2004/08/21 11:18:40 rearnsha Exp $ */
+/*     $NetBSD: SYS.h,v 1.10 2011/01/14 06:12:16 matt Exp $    */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -58,7 +58,7 @@
 
 #define _SYSCALL(x, y)                                                 \
        _SYSCALL_NOERROR(x,y);                                          \
-       bcs PIC_SYM(CERROR, PLT)
+       bcs CERROR
 
 #define SYSCALL_NOERROR(x)                                             \
        _SYSCALL_NOERROR(x,x)
diff -r b9c0249560dd -r 13e2554c6f5e lib/libc/arch/arm/sys/cerror.S
--- a/lib/libc/arch/arm/sys/cerror.S    Fri Jan 14 06:02:57 2011 +0000
+++ b/lib/libc/arch/arm/sys/cerror.S    Fri Jan 14 06:12:16 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cerror.S,v 1.6 2004/08/21 11:30:17 rearnsha Exp $      */
+/*     $NetBSD: cerror.S,v 1.7 2011/01/14 06:12:17 matt Exp $  */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -33,6 +33,10 @@
 
 #include "SYS.h"
 
+#ifdef PIC
+       .hidden CERROR
+#endif
+
 ASENTRY(CERROR)
 #ifdef _REENTRANT
        stmfd   sp!, {r4, lr}



Home | Main Index | Thread Index | Old Index