Module Name: src
Committed By: matt
Date: Fri Jan 14 06:12:17 UTC 2011
Modified Files:
src/lib/libc/arch/arm: SYS.h
src/lib/libc/arch/arm/sys: cerror.S
Log Message:
Change __cerror to be marked hidden and change callers to avoid the PLT.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/arch/arm/SYS.h
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/arch/arm/sys/cerror.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/arch/arm/SYS.h
diff -u src/lib/libc/arch/arm/SYS.h:1.9 src/lib/libc/arch/arm/SYS.h:1.10
--- src/lib/libc/arch/arm/SYS.h:1.9 Sat Aug 21 11:18:40 2004
+++ src/lib/libc/arch/arm/SYS.h Fri Jan 14 06:12:16 2011
@@ -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)
Index: src/lib/libc/arch/arm/sys/cerror.S
diff -u src/lib/libc/arch/arm/sys/cerror.S:1.6 src/lib/libc/arch/arm/sys/cerror.S:1.7
--- src/lib/libc/arch/arm/sys/cerror.S:1.6 Sat Aug 21 11:30:17 2004
+++ src/lib/libc/arch/arm/sys/cerror.S Fri Jan 14 06:12:17 2011
@@ -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}