From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97443 invoked by alias); 21 Oct 2016 21:06:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 97376 invoked by uid 89); 21 Oct 2016 21:06:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,RCVD_IN_SEMBACKSCATTER autolearn=no version=3.3.2 spammy=Hx-languages-length:948 X-HELO: mx0a-001b2d01.pphosted.com From: "Tulio Magno Quites Machado Filho" To: libc-alpha@sourceware.org Subject: [PATCH] powerpc: Fix TOC stub on powerpc64 clone() Date: Fri, 21 Oct 2016 21:06:00 -0000 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16102121-0020-0000-0000-00000254BA29 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16102121-0021-0000-0000-0000305E4FFD Message-Id: <1477083962-9894-1-git-send-email-tuliom@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-21_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1610210374 X-SW-Source: 2016-10/txt/msg00367.txt.bz2 Use a function call to _exit() so that the linker can create a TOC stub instead of just a branch. 2016-10-21 Tulio Magno Quites Machado Filho [BZ #20728] * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a branch to _exit() by a function call. --- sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S index 7c59b9b..df824f5 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 -- 2.1.0