From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20323 invoked by alias); 25 Jan 2012 00:37:59 -0000 Received: (qmail 20314 invoked by uid 22791); 25 Jan 2012 00:37:59 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e34.co.us.ibm.com (HELO e34.co.us.ibm.com) (32.97.110.152) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Jan 2012 00:37:44 +0000 Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 24 Jan 2012 17:37:42 -0700 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e34.co.us.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 24 Jan 2012 17:37:31 -0700 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id C575319D8059 for ; Tue, 24 Jan 2012 17:37:28 -0700 (MST) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q0P0bUNE108382 for ; Tue, 24 Jan 2012 17:37:30 -0700 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q0P0bTW7027804 for ; Tue, 24 Jan 2012 17:37:30 -0700 Received: from [9.57.79.143] ([9.57.79.143]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q0P0bROG027699; Tue, 24 Jan 2012 17:37:28 -0700 Subject: Re: [PATCH] PowerPC 32 with Secure PLT From: Ryan Arnold Reply-To: rsa@us.ibm.com To: Michael Eager Cc: gdb-patches@sourceware.org, Mark Kettenis , "Joseph S. Myers" , Pedro Alves In-Reply-To: <4F1F4382.4010103@eagerm.com> References: <4F1636C7.4020207@eagercon.com> <4F1F4382.4010103@eagerm.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 25 Jan 2012 01:12:00 -0000 Message-ID: <1327451846.3308.300.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12012500-1780-0000-0000-00000299F9CF X-IBM-ISS-SpamDetectors: X-IBM-ISS-DetailInfo: BY=3.00000245; HX=3.00000181; KW=3.00000007; PH=3.00000001; SC=3.00000001; SDB=6.00107846; UDB=6.00027007; UTC=2012-01-25 00:37:40 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00857.txt.bz2 On Tue, 2012-01-24 at 15:49 -0800, Michael Eager wrote: > On 01/17/2012 07:04 PM, Michael Eager wrote: > > This patch adds support for stepping into/over the PLT stubs generated > > for secure PLT on PowerPC 32. It requires a recent binutils which > > generates symbols for the stubs. > > > > This has been tested on PowerPC 32-bit systems with and without PAX. > > > > 2012-01-17 Michael Eager > > > > * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o. > > * ppc-linux-tdep.c: Include glibc-tdep.h. > > (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates. > > (powerpc_linux_in_plt_stub): New function. > > (powerpc_linux_in_dynsym_resolve_code): New function. > > (ppc_skip_trampoline_code): New function. > > (ppc_linux_init_abi): Use PPC specific functions rather than generic. > > Use glibc_skip_solib_resolver. > > Will check in in a couple days, unless I hear additional comments. I'm not familiar with the GDB code at all so I couldn't tell from the patch whether it addresses my concern. Prior to resolving the PLT entries will this trap in the loader's resolver code or does it 'continue' until the PLT entry is populated and the target symbol address has been branched to? It's fine with me if it skips the PLT stubs and the resolver trampoline code but being able to step into the resolver code is still useful to me as a GLIBC developer. Ryan S. Arnold IBM Linux Technology Center Linux Toolchain Development