patches/glibc/2.3.6/150-sh-lowlevellock.patch
author Arnaud Lacombe <lacombar@gmail.com>
Thu Aug 05 17:59:50 2010 +0200 (2010-08-05)
changeset 2068 581a2778ca6f
parent 402 197e1b49586e
permissions -rw-r--r--
libc/glibc: let glibc 3.3.6 link correctly

From http://sourceware.org/git/?p=glibc.git;a=commit;f=elf/Makefile;h=7c8a67320e26b8c11108bf0a3410d3aef9cf3486

Author: Ulrich Drepper <drepper@redhat.com>:
Commit log:
* elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
newer linker scripts.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
     1 ML:	http://sources.redhat.com/ml/libc-hacker/2005-09/msg00002.html
     2 
     3 Date: Mon, 05 Sep 2005 21:07:15 +0900 (JST)
     4 Message-Id: <20050905.210715.15267870.kkojima@rr.iij4u.or.jp>
     5 To: libc-hacker at sources dot redhat dot com
     6 Subject: SH: A typo in lowlevellock.S
     7 From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
     8 
     9 Hi,
    10 
    11 The appended patch fixes a typo in a low-level lock function.  It
    12 set the correct 3rd argument for the futex syscall in loop.  Sorry
    13 for missing such an embarrassing bug.
    14 
    15 Regards,
    16 	kaz
    17 
    18 nptl/ChangeLog:
    19 2005-09-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
    20 
    21 	* sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_mutex_lock_wait):
    22 	Fix typo in register name.
    23 
    24 --- glibc.old/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S	2004-10-26 04:06:44.000000000 +0900
    25 +++ glibc/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S	2005-09-05 19:18:25.000000000 +0900
    26 @@ -1,4 +1,4 @@
    27 -/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
    28 +/* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
    29     This file is part of the GNU C Library.
    30  
    31     The GNU C Library is free software; you can redistribute it and/or
    32 @@ -51,8 +51,8 @@ __lll_mutex_lock_wait:
    33  	SYSCALL_INST_PAD
    34  
    35  2:
    36 -	mov	#2, r4
    37 -	XCHG (r4, @r8, r2)
    38 +	mov	#2, r6
    39 +	XCHG (r6, @r8, r2)
    40  	tst	r2, r2
    41  	bf	1b
    42  
    43 Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>