From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20305 invoked by alias); 15 Apr 2010 15:25:03 -0000 Received: (qmail 20273 invoked by uid 22791); 15 Apr 2010 15:25:01 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Apr 2010 15:24:57 +0000 Received: (qmail 23438 invoked from network); 15 Apr 2010 15:24:55 -0000 Received: from unknown (HELO ?192.168.0.104?) (ams@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Apr 2010 15:24:55 -0000 Message-ID: <4BC72FC1.7020401@codesourcery.com> Date: Thu, 15 Apr 2010 15:25:00 -0000 From: Andrew Stubbs User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 Newsgroups: gmane.comp.gdb.patches To: Mike Frysinger CC: gdb-patches@sourceware.org Subject: Re: [PATCH]: gdb: fdpic/frv: fix shared library loading References: <201004140259.39671.vapier@gentoo.org> In-Reply-To: <201004140259.39671.vapier@gentoo.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2010-04/txt/msg00467.txt.bz2 On 14/04/10 07:59, Mike Frysinger wrote: > While I have no way of testing the FRV, the Blackfin FDPIC code is using this > same base in a 100% copy& paste method since we implemented FDPIC the same > way as the FRV guys (I'll address this in the future). This fix was required > in order to handle shared libraries with Blackfin FDPIC properly, and I see no > reason why it wouldn't also work for FRV (since the uClibc ldso FDPIC code is > the same too and that's really what this is poking). I'm currently working on FDPIC support for SH-2A uClinux, so I have been poking at this same area myself. The FRV code would not work for me out of the box - it's a little too FRV specific, so I started work on another copy and paste, but thought better of it. What I've got now is the bones of a solib-fdpic.c which is intended to be architecture independent. This should be possible since, so far, all the FDPIC Linux implementations I've seen use the same basic ABI, and the SH FDPIC will follow suit. The first major departure from solib-frv.c is that I've implemented a new qXfer remote protocol packet to retrieve the load maps (a pseudo register did not seem like a good plan). This should be target independent also - I believe FRV has the same ptrace interface as SH, so it should Just Work. My implementation isn't complete, by any means, but I intend to submit the first patches soon. I have not attempted to interfere with the FRV support in any way. Andrew