This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: [RFC][MIPS] What to do about DT_MIPS_RLD_MAP and PIE
- From: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- To: "Maciej W. Rozycki" <macro at codesourcery dot com>
- Cc: Roland McGrath <roland at hack dot frob dot com>, Richard Sandiford <rdsandiford at googlemail dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>, "gdb at sourceware dot org" <gdb at sourceware dot org>, "Joseph Myers (joseph at codesourcery dot com)" <joseph at codesourcery dot com>, "Moore, Catherine (Catherine_Moore at mentor dot com)" <Catherine_Moore at mentor dot com>, Nikola Veljkovic <Nikola dot Veljkovic at imgtec dot com>
- Date: Fri, 14 Nov 2014 11:27:20 +0000
- Subject: RE: [RFC][MIPS] What to do about DT_MIPS_RLD_MAP and PIE
- Authentication-results: sourceware.org; auth=none
- References: <6D39441BF12EF246A7ABCE6654B0235320F3027E at LEMAIL01 dot le dot imgtec dot org> <alpine dot DEB dot 1 dot 10 dot 1410221755430 dot 7896 at tp dot orcam dot me dot uk> <6D39441BF12EF246A7ABCE6654B0235320F30462 at LEMAIL01 dot le dot imgtec dot org> <871tpy37ir dot fsf at googlemail dot com> <6D39441BF12EF246A7ABCE6654B0235320F385FA at LEMAIL01 dot le dot imgtec dot org> <alpine dot DEB dot 1 dot 10 dot 1410301835480 dot 7896 at tp dot orcam dot me dot uk> <20141030193816 dot E80F82C3B18 at topped-with-meat dot com> <alpine dot DEB dot 1 dot 10 dot 1410302305320 dot 7896 at tp dot orcam dot me dot uk> <6D39441BF12EF246A7ABCE6654B0235320F6A03C at LEMAIL01 dot le dot imgtec dot org> <6D39441BF12EF246A7ABCE6654B0235320F6F06F at LEMAIL01 dot le dot imgtec dot org> <20141112233232 dot 0D6BF2C3B32 at topped-with-meat dot com> <6D39441BF12EF246A7ABCE6654B0235320F6F715 at LEMAIL01 dot le dot imgtec dot org> <alpine dot DEB dot 1 dot 10 dot 1411131754290 dot 2881 at tp dot orcam dot me dot uk>
> On Thu, 13 Nov 2014, Matthew Fortune wrote:
>
> > OK, unless anyone objects I will prepare patches on that basis.
> >
> > It looks like there are no GNU tags defined yet in the 'new'
> > OS range for tags. Should I just take the first one?
> >
> > #define DT_GNU_RLD_MAP 0x6000000d
>
> That would be the natural choice in my opinion unless someone already
> uses it for something in a private tree or branch and did not mention it
> so far, but plans to submit their code. I think we shouldn't be causing
> hassle to anyone unnecessarily. Do we have a place (other than the
> relevant pieces of source code) we use to document our (GNU) ABI
> conventions?
One concern is over what the GNU ABI encompasses. I.e. We have glibc, uclibc
musl and bionic (that I know of) which provide dynamic linker functionality
with the linux kernel. If they are independently allowed to define tags then
there is a high chance of collision and bugs from accidentally getting a linker
to target the wrong 'OS'.
So do we have to take the 'GNU' OS to mean anything which provides dynamic
linking on linux? Is there already a description of what it means and/or can
someone think of a sensible description?
In some ways doing this as an architecture independent extension may actually
require specifying it in the ELF ABI itself.
Thanks,
Matthew