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

Joseph Myers joseph@codesourcery.com
Tue Jun 23 16:02:00 GMT 2015


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?

If so, the patch is OK if the binutils patch is approved.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list