]> sourceware.org Git - glibc.git/commitdiff
powerpc: Fix TOC stub on powerpc64 clone()
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 21 Oct 2016 17:19:10 +0000 (15:19 -0200)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 28 Oct 2016 21:13:21 +0000 (19:13 -0200)
Use a function call to _exit() so that the linker can create a TOC stub
instead of just a branch.

Tested on powerpc64.

ChangeLog
sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S

index 27a0194fcb923d7f7f134d2039796f602a316eb9..4f76008663f90159bd37ab428bd40a0be5be185a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
+
+       [BZ #20728]
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
+       branch to _exit() by a function call.
+
 2016-10-28  Florian Weimer  <fweimer@redhat.com>
 
        * malloc/malloc.c: Update chunk layout comments.
index 7c59b9b4e96d2d6faa802bda95d04c114e64f3eb..df824f5a696f41018e18f25409e75e5653e0e144 100644 (file)
@@ -97,7 +97,7 @@ L(oldpid):
 #ifdef SHARED
        b       JUMPTARGET(__GI__exit)
 #else
-       b       JUMPTARGET(_exit)
+       bl      JUMPTARGET(_exit)
        /* We won't ever get here but provide a nop so that the linker
           will insert a toc adjusting stub if necessary.  */
        nop
This page took 0.157162 seconds and 5 git commands to generate.