From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79607 invoked by alias); 23 Jun 2015 15:31:53 -0000 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 Received: (qmail 79597 invoked by uid 89); 23 Jun 2015 15:31:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 23 Jun 2015 15:31:50 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Z7QAt-0006x4-BK from joseph_myers@mentor.com ; Tue, 23 Jun 2015 08:31:47 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.224.2; Tue, 23 Jun 2015 16:31:45 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1Z7QAq-0001DC-26; Tue, 23 Jun 2015 15:31:44 +0000 Date: Tue, 23 Jun 2015 15:31:00 -0000 From: Joseph Myers To: Matthew Fortune CC: "gdb-patches@sourceware.org" Subject: Re: [PATCH, MIPS] Support shared library debug with MIPS PIE (gdb) In-Reply-To: <6D39441BF12EF246A7ABCE6654B02353211760FA@LEMAIL01.le.imgtec.org> Message-ID: References: <6D39441BF12EF246A7ABCE6654B02353211760FA@LEMAIL01.le.imgtec.org> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2015-06/txt/msg00476.txt.bz2 On Tue, 23 Jun 2015, Matthew Fortune wrote: > Please note that the new DT_MIPS_RLD_MAP2 support will not be enabled unless > the host's elf.h header has the new tag defined in it. For cross compiled GDB > this may mean hacking the solib-svr4.c file to define the macro until such > time as distributions update glibc. That doesn't make any sense to me. Hosts (e.g. MinGW) may not have elf.h at all. GDB should get these definitions from the #include "elf/mips.h" already in solib-svr4.c (i.e. from toplevel's include/elf/mips.h). And so there should be no #ifdefs there. -- Joseph S. Myers joseph@codesourcery.com