summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/elf.h
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/amd64/include/elf.h
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/amd64/include/elf.h')
-rw-r--r--sys/amd64/include/elf.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/amd64/include/elf.h b/sys/amd64/include/elf.h
index a4c7f79..e5c95f7 100644
--- a/sys/amd64/include/elf.h
+++ b/sys/amd64/include/elf.h
@@ -81,16 +81,14 @@ __ElfType(Auxinfo);
#define AT_BASE 7 /* Interpreter's base address. */
#define AT_FLAGS 8 /* Flags (unused for i386). */
#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. */
/*
* Relocation types.
OpenPOWER on IntegriCloud