This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A tiny patch for SH


Hi,

Here is a tiny patch for SH for an obvious bug-fix.

	kaz
--
        * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Fix error code
        handling.

Index: sysdeps/unix/sysv/linux/sh/socket.S
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/sh/socket.S,v
retrieving revision 1.2
diff -u -r1.2 socket.S
--- socket.S	2000/10/26 02:30:30	1.2
+++ socket.S	2000/12/25 00:34:13
@@ -81,7 +81,7 @@
 
 	mov.l .L2, r1
 #ifdef SHARED
-	mov	r0, r2
+	mov	r0, r4
 	mov.l	r12, @-r15
 	sts.l	pr, @-r15
         mov.l	0f, r12
@@ -90,7 +90,7 @@
 	mova	.L2, r0
 	add	r0, r1
 	jsr @r1
-	 mov	r2, r0
+	 nop
 	lds.l	@r15+, pr
 	rts
 	 mov.l	@r15+, r12
@@ -99,7 +99,7 @@
 	.long	_GLOBAL_OFFSET_TABLE_
 #else
 	jmp @r1
-	 nop
+	 mov	r0, r4
 #endif
 1:
 	/* Successful; return the syscall's value.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]