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.
This commit is contained in:
Tulio Magno Quites Machado Filho 2016-10-21 15:19:10 -02:00
parent ae9166f2b8
commit ce193f551e
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View 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