On Fri, Jan 07, 2011 at 12:02:55PM -0500, Ben Kaduk wrote:
> On Fri, Jan 7, 2011 at 9:22 AM, Konstantin Belousov <k...@freebsd.org> wrote:
> > Author: kib
> > Date: Fri Jan  7 14:22:34 2011
> > New Revision: 217097
> > URL: http://svn.freebsd.org/changeset/base/217097
> >
> > Log:
> >  Add AT_STACKPROT elf aux vector. Will be used to inform rtld about the
> >  initial stack protection set by the kernel image activator.
> >
> ==============================================================================
> > --- head/sys/amd64/include/elf.h        Fri Jan  7 14:17:29 2011        
> > (r217096)
> > +++ head/sys/amd64/include/elf.h        Fri Jan  7 14:22:34 2011        
> > (r217097)
> > @@ -94,8 +94,9 @@ __ElfType(Auxinfo);
> >  #define        AT_NCPUS        19      /* Number of CPUs. */
> >  #define        AT_PAGESIZES    20      /* Pagesizes. */
> >  #define        AT_PAGESIZESLEN 21      /* Number of pagesizes. */
> > +#define        AT_STACKPROT    23      /* Initial stack protection. */
> >
> > -#define        AT_COUNT        22      /* Count of defined aux entry 
> > types. */
> > +#define        AT_COUNT        24      /* Count of defined aux entry 
> > types. */
> 
> 
> Is there a reason to skip 22?

Yes, I can swear that I saw the reference that stated that even aux vector
types are used for Elf_Auxinfo.a_un.a_ptr, and odd are for a_val.
I already received a private inquiry about the same issue, probably had
to note this in the commit message.

Attachment: pgpt1Lt0egPfs.pgp
Description: PGP signature

Reply via email to