From: Tulio Magno Quites Machado Filho Date: Fri, 21 Oct 2016 17:19:10 +0000 (-0200) Subject: powerpc: Fix TOC stub on powerpc64 clone() X-Git-Tag: glibc-2.25~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce193f551ec21df85c934626a21730881484dcf0;p=thirdparty%2Fglibc.git powerpc: Fix TOC stub on powerpc64 clone() Use a function call to _exit() so that the linker can create a TOC stub instead of just a branch. Tested on powerpc64. --- diff --git a/ChangeLog b/ChangeLog index 27a0194fcb9..4f76008663f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-10-28 Tulio Magno Quites Machado Filho + + [BZ #20728] + * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a + branch to _exit() by a function call. + 2016-10-28 Florian Weimer * malloc/malloc.c: Update chunk layout comments. diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S index 7c59b9b4e96..df824f5a696 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S @@ -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