Patch for sysdeps/unix/sysv/linux/mips/brk.c
Joseph S. Myers
joseph@codesourcery.com
Wed Jan 4 01:25:00 GMT 2006
sysdeps/unix/sysv/linux/mips/brk.c calls a syscall but fails to use the
full set of clobbers for syscalls on MIPS Linux. For safety it should use
__SYSCALL_CLOBBERS the way all the other MIPS syscall definitions do.
2006-01-04 Joseph S. Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/brk.c (__brk): Use
__SYSCALL_CLOBBERS.
Index: sysdeps/unix/sysv/linux/mips/brk.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/brk.c,v
retrieving revision 1.3
diff -u -r1.3 brk.c
--- sysdeps/unix/sysv/linux/mips/brk.c 16 Sep 2005 12:20:48 -0000 1.3
+++ sysdeps/unix/sysv/linux/mips/brk.c 4 Jan 2006 01:20:11 -0000
@@ -41,7 +41,7 @@
"syscall" /* Perform the system call. */
: "=r" (res)
: "I" (SYS_ify (brk)), "r" (addr)
- : "$4", "$7");
+ : "$4", "$7", __SYSCALL_CLOBBERS);
newbrk = (void *) res;
}
__curbrk = newbrk;
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list