This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]