From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15804 invoked by alias); 6 Jan 2012 20:56:42 -0000 Received: (qmail 15795 invoked by uid 22791); 6 Jan 2012 20:56:41 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Jan 2012 20:56:27 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id q06KuC2D028592; Fri, 6 Jan 2012 21:56:12 +0100 (CET) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id q06KuBZo001389; Fri, 6 Jan 2012 21:56:11 +0100 (CET) Date: Fri, 06 Jan 2012 20:56:00 -0000 Message-Id: <201201062056.q06KuBZo001389@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: eager@eagerm.com CC: gdb@sourceware.org, amodra@gmail.com In-reply-to: <4F075886.9030404@eagerm.com> (message from Michael Eager on Fri, 06 Jan 2012 12:24:38 -0800) Subject: Re: PowerPC SecurePLT - stepping into library function References: <4F075159.5090508@eagerm.com> <201201062015.q06KF83P031117@glazunov.sibelius.xs4all.nl> <4F075886.9030404@eagerm.com> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00024.txt.bz2 > Date: Fri, 06 Jan 2012 12:24:38 -0800 > From: Michael Eager > > https://www.power.org/resources/downloads/Power-Arch-32-bit-ABI-supp-1.0-Linux.pdf Thanks! I guess you'll have to do some sort of instruction pattern matching. The ABI document suggests specific code sequences for them, which is probably what everybody uses to implement them. You might want to have a look at what is done in mips-linux-tdep.c, since it seems to have linkage stubs outside of the PLT as well. Actually closer to home the 64-bit PowerPC stuff seems to do somethings similar.