This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH, MIPS] Support shared library debug with MIPS PIE (gdb)
- From: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 23 Jun 2015 15:52:17 +0000
- Subject: RE: [PATCH, MIPS] Support shared library debug with MIPS PIE (gdb)
- Authentication-results: sourceware.org; auth=none
- References: <6D39441BF12EF246A7ABCE6654B02353211760FA at LEMAIL01 dot le dot imgtec dot org> <alpine dot DEB dot 2 dot 10 dot 1506231529530 dot 4489 at digraph dot polyomino dot org dot uk>
Joseph Myers <joseph@codesourcery.com> writes:
> 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.
Thanks. I got this twisted owing to the gdbserver using the host elf.h and me
keeping the binutils and GDB patches separate when I should have had the
elf/mips.h changes shared between the two.
I'll send an updated patch with the #ifdefs removed and ensure that binutils
commit precedes the GDB commit when approved.
Matthew