Add AT_STACKPROT elf aux vector. Will be used to inform rtld about the

initial stack protection set by the kernel image activator.
This commit is contained in:
Konstantin Belousov 2011-01-07 14:22:34 +00:00
parent 8ef92ea65e
commit 39198f15ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217097
8 changed files with 16 additions and 8 deletions

View file

@ -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. */
/*
* Relocation types.

View file

@ -82,8 +82,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. */
#define R_ARM_COUNT 33 /* Count of defined relocation types. */

View file

@ -96,8 +96,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. */
/*
* Relocation types.

View file

@ -95,8 +95,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. */
/*
* Values for e_flags.

View file

@ -257,8 +257,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. */
#define ET_DYN_LOAD_ADDR 0x0120000

View file

@ -105,8 +105,9 @@ __ElfType(Auxinfo);
#define AT_NCPUS 17 /* Number of CPUs. */
#define AT_PAGESIZES 18 /* Pagesizes. */
#define AT_PAGESIZESLEN 19 /* Number of pagesizes. */
#define AT_STACKPROT 21 /* Initial stack protection. */
#define AT_COUNT 20 /* Count of defined aux entry types. */
#define AT_COUNT 22 /* Count of defined aux entry types. */
/*
* Relocation types.

View file

@ -90,8 +90,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. */
/* Define "machine" characteristics */
#if __ELF_WORD_SIZE == 32

View file

@ -90,8 +90,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. */
/* Define "machine" characteristics */
#if __ELF_WORD_SIZE == 32