summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-03-17 12:50:16 +0000
committerkib <kib@FreeBSD.org>2009-03-17 12:50:16 +0000
commit7695aca762c11a65c2cb77f36c495e0e77dcd2aa (patch)
tree1fa9eba0c95692d33bc985639afa2e48b46716e0 /sys/sparc64/include
parent6cc834836c24a6517c53a0a2436359e9b832212a (diff)
downloadFreeBSD-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/sparc64/include')
-rw-r--r--sys/sparc64/include/elf.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/sparc64/include/elf.h b/sys/sparc64/include/elf.h
index 108ade1..c0fcbee 100644
--- a/sys/sparc64/include/elf.h
+++ b/sys/sparc64/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
OpenPOWER on IntegriCloud