patches/glibc/2.18/100-4f2bcda-ARM-Fix-clone-code-when-built-for-Thumb.patch
author danielrubiob@gmail.com
Tue Feb 11 21:34:48 2014 +0100 (2014-02-11)
changeset 3285 a8cb9039fade
permissions -rw-r--r--
complibs/cloog: bump version

Signed-off-by: Daniel Rubio Bonilla <danielrubiob@gmail.com>
[yann.morin.1998@free.fr: re-order versions]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Cody P Schafer <dev@codyps.com>
Message-Id: <c2de3964cd6d5e4173cc.1391984023@uemo>
Patchwork-Id: 318637
     1 commit 4f2bcda964d4fff56855e0c66198c9bcb682ea1e
     2 Author: Will Newton <will.newton@linaro.org>
     3 Date:   Thu Aug 29 20:10:26 2013 +0100
     4 
     5     ARM: Fix clone code when built for Thumb.
     6     
     7     The mov lr, pc instruction will lose the Thumb bit from the return address
     8     so use blx lr instead.
     9     
    10     ports/ChangeLog.arm:
    11     
    12     2013-08-30  Will Newton  <will.newton@linaro.org>
    13     
    14     	[BZ #15909]
    15     	* sysdeps/unix/sysv/linux/arm/clone.S (__clone): Use blx
    16     	instead of mov lr, pc.
    17     
    18     (cherry picked from commit 6b06ac56cdfc9293908724e51e827534e97819aa)
    19 
    20 diff --git a/NEWS b/NEWS
    21 index b023c30..f64fb82 100644
    22 --- a/NEWS
    23 +++ b/NEWS
    24 @@ -5,6 +5,12 @@ See the end for copying conditions.
    25  Please send GNU C library bug reports via <http://sourceware.org/bugzilla/>
    26  using `glibc' in the "product" field.
    27  
    28 +Version 2.18.1
    29 +
    30 +* The following bugs are resolved with this release:
    31 +
    32 +  15909.
    33 +
    34  Version 2.18
    35  
    36  * The following bugs are resolved with this release:
    37 diff --git a/ports/ChangeLog.arm b/ports/ChangeLog.arm
    38 index 1e7a35c..54debd7 100644
    39 --- a/ports/ChangeLog.arm
    40 +++ b/ports/ChangeLog.arm
    41 @@ -1,3 +1,9 @@
    42 +2013-08-30  Will Newton  <will.newton@linaro.org>
    43 +
    44 +	[BZ #15909]
    45 +	* sysdeps/unix/sysv/linux/arm/clone.S (__clone): Use blx
    46 +	instead of mov lr, pc.
    47 +
    48  2013-07-03  Joseph Myers  <joseph@codesourcery.com>
    49  
    50  	* sysdeps/arm/include/bits/setjmp.h [_ISOMAC] (JMP_BUF_REGLIST):
    51 diff --git a/ports/sysdeps/unix/sysv/linux/arm/clone.S b/ports/sysdeps/unix/sysv/linux/arm/clone.S
    52 index ce9c2a5..6e74fa7 100644
    53 --- a/ports/sysdeps/unix/sysv/linux/arm/clone.S
    54 +++ b/ports/sysdeps/unix/sysv/linux/arm/clone.S
    55 @@ -93,8 +93,8 @@ PSEUDO_END (__clone)
    56  	mov	lr, pc
    57  	bx      ip
    58  #else
    59 -	mov	lr, pc
    60 -	ldr 	pc, [sp], #8
    61 +	ldr 	lr, [sp], #8
    62 +	blx	lr
    63  #endif
    64  
    65  	@ and we are done, passing the return value through r0