From b874af999547ee4e7688fc07710786131eef7d1b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 12 Mar 2003 01:06:30 +0000 Subject: [PATCH] Update. 2003-03-11 Ralf Baechle * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal instead of jalr to invoke subroutine so restoring the $gp register will work properly. --- ChangeLog | 6 ++++++ sysdeps/unix/sysv/linux/mips/clone.S | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2fa3359..49ea335 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-03-11 Ralf Baechle + + * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal + instead of jalr to invoke subroutine so restoring the $gp register + will work properly. + 2003-03-11 Martin Schwidefsky * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define diff --git a/sysdeps/unix/sysv/linux/mips/clone.S b/sysdeps/unix/sysv/linux/mips/clone.S index 1e02968..eba4ad9 100644 --- a/sysdeps/unix/sysv/linux/mips/clone.S +++ b/sysdeps/unix/sysv/linux/mips/clone.S @@ -1,6 +1,6 @@ -/* Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 2000, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. - Contributed by Ralf Baechle , 1996. + Contributed by Ralf Baechle , 1996. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -93,7 +93,7 @@ ENTRY(__thread_start) lw a0,4(sp) /* Argument pointer. */ /* Call the user's function. */ - jalr t9 + jal t9 /* Call _exit rather than doing it inline for breakpoint purposes. */ move a0,v0 -- 2.7.4