From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29517 invoked by alias); 30 Jan 2012 17:11:36 -0000 Received: (qmail 29388 invoked by uid 22791); 30 Jan 2012 17:11:35 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from caibbdcaaaaf.dreamhost.com (HELO homiemail-a56.g.dreamhost.com) (208.113.200.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Jan 2012 17:11:22 +0000 Received: from homiemail-a56.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a56.g.dreamhost.com (Postfix) with ESMTP id AA2CAFE00C for ; Mon, 30 Jan 2012 09:11:21 -0800 (PST) Received: from redwood.eagercon.com (c-76-102-3-160.hsd1.ca.comcast.net [76.102.3.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eager@eagerm.com) by homiemail-a56.g.dreamhost.com (Postfix) with ESMTPSA id 76A5DFE005 for ; Mon, 30 Jan 2012 09:11:21 -0800 (PST) Message-ID: <4F26CF38.8070604@eagerm.com> Date: Mon, 30 Jan 2012 17:19:00 -0000 From: Michael Eager User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [PATCH] PowerPC 32 with Secure PLT References: <4F1636C7.4020207@eagercon.com> In-Reply-To: <4F1636C7.4020207@eagercon.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00995.txt.bz2 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. Applied with suggested changes. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077