RFC: Add PT_GNU_PROPERTY to cover .note.gnu.property section
H.J. Lu
hjl.tools@gmail.com
Mon Jan 1 00:00:00 GMT 2018
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?
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-elf-Add-PT_GNU_PROPERTY-segment-type.patch
Type: text/x-patch
Size: 49426 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gnu-gabi/attachments/20180101/b131e25d/attachment.bin>
More information about the Gnu-gabi
mailing list