This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Cary Coutant <ccoutant at gmail dot com>
- Cc: Florian Weimer <fweimer at redhat dot com>, Binutils <binutils at sourceware dot org>, GNU C Library <libc-alpha at sourceware dot org>, gnu-gabi at sourceware dot org, x86-64-abi <x86-64-abi at googlegroups dot com>
- Date: Mon, 10 Dec 2018 19:16:40 -0800
- Subject: Re: RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
- References: <CAMe9rOqk-s5LHb0dAOZJ=GdLeUgqY-sdx3GLBLeBsnM=kU1dZQ@mail.gmail.com> <87ftvoouda.fsf@oldenburg.str.redhat.com> <CAMe9rOrk8DoAJ8Qusy3ZrzSx-ZwERiaPvbwARKnzW7QzELWRGQ@mail.gmail.com> <CAJimCsHRsi48qpGVu2V8KTf+_u247Ojf5EnSs7wUwn4_ogx4AA@mail.gmail.com> <CAMe9rOp9aqysmkTx2e9QzAqDpM=a+xnVXr_SQ0c8A4auhinVsw@mail.gmail.com> <87k1kyhbki.fsf@oldenburg.str.redhat.com> <CAMe9rOq6AgykBthApfHsFgbTHM9LjocDP-DNjB=Dht5uOagT7g@mail.gmail.com> <CAJimCsEDCNWBZsMEMeco0Vkj03iXML08KpLvAxC3DtyzXq8abA@mail.gmail.com> <CAMe9rOqHfqfbu_V1bPgykyN352btS8eZpRm-HAwJDfTf_Fiy-Q@mail.gmail.com> <CAMe9rOp7C_HS4cg-GcHH6NhT5oP-BxzE9emc6+Szx_-mAvxONw@mail.gmail.com> <CAMe9rOq4viqCYVXuVbyzTY0R0XVxzjc_tis9Uxw9OmgZRYcOjA@mail.gmail.com> <CAMe9rOp724pNQhndd8_-bVOS=42=0a4Ajsmgi2LUzA1P2BeWvw@mail.gmail.com>
On Tue, Dec 4, 2018 at 5:57 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Wed, Nov 28, 2018 at 9:27 AM H.J. Lu <hjl.tools@gmail.com> wrote:
> >
> > On Tue, Nov 27, 2018 at 3:59 PM H.J. Lu <hjl.tools@gmail.com> wrote:
> > >
> > > On Tue, Nov 27, 2018 at 11:25 AM H.J. Lu <hjl.tools@gmail.com> wrote:
> > > >
> > > > On Tue, Nov 27, 2018 at 9:56 AM Cary Coutant <ccoutant@gmail.com> wrote:
> > > > >
> > > > > > > > PT_GNU_PROPERTY isn't compatible with existing loaders. This needs
> > > > > > > > to be both forward and backward compatible.
> > > > > > >
> > > > > > > Which loaders? The kernel?
> > > > > >
> > > > > > Kernel, glibc, gdb, .....
> > > > >
> > > > > How is that any different from using PT_NOTE? Existing loaders don't
> > > > > handle that either.
> > > > >
> > > > > If you're claiming that a new PT_ value in the program header table
> > > > > will be rejected by existing loaders, that's a bug. It should be
> > > > > fixed. The whole principle of ELF extensibility relies on that.
> > > >
> > > > Add PT_GNU_PROPERTY to cover .note.gnu.property section?
> > >
> > > Like:
> > >
> > > 1. Add PT_GNU_PROPERTY segment type.
> > >
> > > # define PT_GNU_PROPERTY (PT_LOOS + 0x474e553)
> > >
> > > which covers .note.gnu.property section.
> > > 2. Remove GNU_PROPERTY_X86_UINT32_VALID.
> > >
> >
> > Here is a patch. The updated pdf is at
> >
> > https://github.com/hjl-tools/linux-abi/wiki/linux-abi-draft.pdf
>
> Here is the patch to support PT_GNU_PROPERTY. Any comments?
>
I am checking it in tomorrow.
--
H.J.