NetBSD-Users archive

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

Re: 5.1 vs. 6.0_BETA



On Sat, Feb 25, 2012 at 12:51:57AM +0300, Aleksey Cheusov wrote:
> After updating the system from 5.1 to 6.0_BETA I've found that a lot of
> applications built for 5.1 stop working due to lack of __cerror in libc.

Try the attached patch.

Joerg
Index: arch/arm/sys/cerror.S
===================================================================
RCS file: /home/joerg/repo/netbsd/src/lib/libc/arch/arm/sys/cerror.S,v
retrieving revision 1.7
diff -u -p -r1.7 cerror.S
--- arch/arm/sys/cerror.S       14 Jan 2011 06:12:17 -0000      1.7
+++ arch/arm/sys/cerror.S       24 Feb 2012 22:13:51 -0000
@@ -34,7 +34,7 @@
 #include "SYS.h"
 
 #ifdef PIC
-       .hidden CERROR
+       .protected      CERROR
 #endif
 
 ASENTRY(CERROR)
Index: arch/i386/sys/cerror.S
===================================================================
RCS file: /home/joerg/repo/netbsd/src/lib/libc/arch/i386/sys/cerror.S,v
retrieving revision 1.15
diff -u -p -r1.15 cerror.S
--- arch/i386/sys/cerror.S      18 Nov 2011 20:21:41 -0000      1.15
+++ arch/i386/sys/cerror.S      24 Feb 2012 22:14:02 -0000
@@ -42,7 +42,7 @@
 #include "SYS.h"
 
        .globl  _C_LABEL(__errno)
-       .hidden CERROR
+       .protected      CERROR
 
 _ENTRY(CERROR)
        pushl   %eax
Index: arch/mips/sys/cerror.S
===================================================================
RCS file: /home/joerg/repo/netbsd/src/lib/libc/arch/mips/sys/cerror.S,v
retrieving revision 1.16
diff -u -p -r1.16 cerror.S
--- arch/mips/sys/cerror.S      17 Jan 2011 23:34:44 -0000      1.16
+++ arch/mips/sys/cerror.S      24 Feb 2012 22:09:46 -0000
@@ -43,8 +43,8 @@
 #endif /* LIBC_SCCS and not lint */
 
 #ifdef PIC
-       .hidden __cerror
-#endif
+       .protected      __cerror
+i#endif
 
 #ifdef _REENTRANT
        .globl  _C_LABEL(__errno)
Index: arch/powerpc/sys/cerror.S
===================================================================
RCS file: /home/joerg/repo/netbsd/src/lib/libc/arch/powerpc/sys/cerror.S,v
retrieving revision 1.8
diff -u -p -r1.8 cerror.S
--- arch/powerpc/sys/cerror.S   16 Jan 2011 02:43:10 -0000      1.8
+++ arch/powerpc/sys/cerror.S   24 Feb 2012 22:13:58 -0000
@@ -11,7 +11,7 @@ __RCSID("$NetBSD: cerror.S,v 1.8 2011/01
        .globl  _C_LABEL(errno)
 #endif
 #ifdef PIC
-       .hidden _C_LABEL(__cerror)
+       .protected      CERROR
 #endif
 
 ENTRY(__cerror)
Index: arch/powerpc64/sys/cerror.S
===================================================================
RCS file: /home/joerg/repo/netbsd/src/lib/libc/arch/powerpc64/sys/cerror.S,v
retrieving revision 1.2
diff -u -p -r1.2 cerror.S
--- arch/powerpc64/sys/cerror.S 29 Oct 2011 16:03:03 -0000      1.2
+++ arch/powerpc64/sys/cerror.S 24 Feb 2012 22:14:06 -0000
@@ -7,7 +7,7 @@
        .globl  _C_LABEL(errno)
 #endif
 #ifdef PIC
-       .hidden _C_LABEL(__cerror)
+       .protected      CERROR
 #endif
 
 ENTRY(__cerror)
Index: arch/vax/SYS.h
===================================================================
RCS file: /home/joerg/repo/netbsd/src/lib/libc/arch/vax/SYS.h,v
retrieving revision 1.11
diff -u -p -r1.11 SYS.h
--- arch/vax/SYS.h      25 Jan 2011 02:38:15 -0000      1.11
+++ arch/vax/SYS.h      24 Feb 2012 22:14:20 -0000
@@ -85,5 +85,5 @@
 
 #define        ASMSTR          .asciz
 
-       .hidden CERROR
+       .protected      CERROR
        .globl  CERROR
Index: arch/x86_64/sys/cerror.S
===================================================================
RCS file: /home/joerg/repo/netbsd/src/lib/libc/arch/x86_64/sys/cerror.S,v
retrieving revision 1.4
diff -u -p -r1.4 cerror.S
--- arch/x86_64/sys/cerror.S    18 Nov 2011 20:17:46 -0000      1.4
+++ arch/x86_64/sys/cerror.S    24 Feb 2012 22:14:11 -0000
@@ -42,7 +42,7 @@
 #include "SYS.h"
 
        .globl  _C_LABEL(__errno)
-       .hidden CERROR
+       .protected      CERROR
 
 _ENTRY(CERROR)
        pushq   %r12


Home | Main Index | Thread Index | Old Index