[PATCH, MIPS] Support shared library debug with MIPS PIE (glibc)

Matthew Fortune Matthew.Fortune@imgtec.com
Fri Jun 26 19:45:00 GMT 2015


Matthew Fortune <matthew.fortune@imgtec.com> writes:
> Joseph Myers <joseph@codesourcery.com> writes:
> > On Tue, 23 Jun 2015, Matthew Fortune wrote:
> >
> > > > What if there are both DT_MIPS_RLD_MAP2 and DT_MIPS_RLD_MAP?  Will
> > > > that never happen?
> > >
> > > That will happen for executables much like MIPS has an unused
> > > DT_DEBUG entry. I figured it would be better to add DT_MIPS_RLD_MAP2
> > > to all executables allowing this to be the only tag supported by
> > > dynamic linkers that may not care about compatibility with
> > > pre-existing
> > executables.
> > >
> > > Are you thinking there should be a consistency check that the two
> > > tags lead to the same address? I guess there would be no harm in
> > > that but equally it may not be of much value. What do you think?
> >
> > Are you saying that glibc never needs to handle both because if both
> > are present they will point to the same address and so new glibc,
> > looking only at DT_MIPS_RLD_MAP2, will work fine (for non-PIE) with
> old GDB?
> 
> That's right.
> 
> Thanks,
> Matthew
> 
> > If so, the patch is OK if the binutils patch is approved.

This is now committed. One minor change to match binutils is that the
tag is renamed to DT_MIPS_RLD_MAP_REL.

Thanks,
Matthew



More information about the Libc-alpha mailing list