From patchwork Thu Aug 20 13:25:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 8317 X-Patchwork-Delegate: tuliom@linux.vnet.ibm.com Received: (qmail 44569 invoked by alias); 20 Aug 2015 13:25:22 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 44530 invoked by uid 89); 20 Aug 2015 13:25:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx2.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] Terminate FDE before return trampoline in makecontext for powerpc (bug 18635) X-Yow: I feel real SOPHISTICATED being in FRANCE! Date: Thu, 20 Aug 2015 15:25:18 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 This fixes tst-makecontext for PowerPC. Andreas. [BZ #18635] * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S (__makecontext): Terminate FDE before return label. (__novec_makecontext): Likewise. --- sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S b/sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S index 1d6915b..472f5a5 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S @@ -94,6 +94,8 @@ ENTRY(__makecontext) blr + cfi_endproc + nop /* * If the function returns, it comes here. We put ucp->uc_link in * r31, which is a callee-saved register. We have to continue with @@ -106,6 +108,7 @@ L(exitcode): 4: bl HIDDEN_JUMPTARGET(exit) b 4b + cfi_startproc END(__makecontext) versioned_symbol (libc, __makecontext, makecontext, GLIBC_2_3_4) @@ -185,6 +188,8 @@ ENTRY(__novec_makecontext) blr + cfi_endproc + nop /* * If the function returns, it comes here. We put ucp->uc_link in * r31, which is a callee-saved register. We have to continue with @@ -197,6 +202,7 @@ L(novec_exitcode): 4: bl HIDDEN_JUMPTARGET(exit) b 4b + cfi_startproc END(__novec_makecontext) .previous