diff options
author | kib <kib@FreeBSD.org> | 2009-03-17 12:50:16 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-03-17 12:50:16 +0000 |
commit | 7695aca762c11a65c2cb77f36c495e0e77dcd2aa (patch) | |
tree | 1fa9eba0c95692d33bc985639afa2e48b46716e0 /sys/sun4v | |
parent | 6cc834836c24a6517c53a0a2436359e9b832212a (diff) | |
download | FreeBSD-src-7695aca762c11a65c2cb77f36c495e0e77dcd2aa.zip FreeBSD-src-7695aca762c11a65c2cb77f36c495e0e77dcd2aa.tar.gz |
Add AT_EXECPATH ELF auxinfo entry type. The value's a_ptr is a pointer
to the full path of the image that is being executed.
Increase AT_COUNT.
Remove no longer true comment about types used in Linux ELF binaries,
listed types contain FreeBSD-specific entries.
Reviewed by: kan
Diffstat (limited to 'sys/sun4v')
-rw-r--r-- | sys/sun4v/include/elf.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/sun4v/include/elf.h b/sys/sun4v/include/elf.h index 108ade1..c0fcbee 100644 --- a/sys/sun4v/include/elf.h +++ b/sys/sun4v/include/elf.h @@ -78,16 +78,14 @@ __ElfType(Auxinfo); #define AT_BASE 7 /* Interpreter's base address. */ #define AT_FLAGS 8 /* Flags (unused). */ #define AT_ENTRY 9 /* Where interpreter should transfer control. */ -/* - * The following non-standard values are used in Linux ELF binaries. - */ #define AT_NOTELF 10 /* Program is not ELF ?? */ #define AT_UID 11 /* Real uid. */ #define AT_EUID 12 /* Effective uid. */ #define AT_GID 13 /* Real gid. */ #define AT_EGID 14 /* Effective gid. */ +#define AT_EXECPATH 15 /* Path to the executable. */ -#define AT_COUNT 15 /* Count of defined aux entry types. */ +#define AT_COUNT 16 /* Count of defined aux entry types. */ /* Define "machine" characteristics */ #if __ELF_WORD_SIZE == 32 |