Re: [PATCH v3] elf loader support for auxvec base platform string

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: John Reiser
Date: Friday, July 18, 2008 - 1:31 pm

Nathan Lynch wrote:


The numbers are chosen by experience, taste, and fiat.
Hopefully new choices do not conflict with existing ones,
but there is no formal "issuing authority."
In history the auxiliary vector has been not well standardized
and many times has been hidden from view of applications, although some
SysV-based systems have made it visible as a fourth argument to main().
Linux has /proc/pid/auxv, although the implementation suffers
from being exposed to overwriting by the user.  From long experience
at virtualization in user mode, I favor better access, more use,
and better understanding of what the auxiliary vector provides.

AT_SYSINFO at 32 was chosen to avoid conflicts with [0,31]
partly on the theory that the first 32 might be considered
to be reserved for use across all UNIX-like systems,
while AT_SYSINFO definitely was Linux-specific.
I chose AT_EXECFN at 31 because I considered the concept
to be applicable to any system having execve(), even if AT_EXECFN
is not universally implemented.  I had not seen any new tags
below 32 in a long time.  The concept of AT_EXECFN allows
a nice interface for a virtualizer. The somewhat-related
AT_EXECFD already exists below 32.

Elsewhere, I've staked out use of a new AT_WINE_PRELOAD_INFO
at 30.  Avoid that one, please. :-)

-- 
John Reiser, jreiser@BitWagon.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
AT_BASE_PLATFORM (v2), Nathan Lynch, (Tue Jul 15, 4:58 pm)
[PATCH] enable AT_BASE_PLATFORM aux vector for powerpc, Nathan Lynch, (Tue Jul 15, 4:58 pm)
Re: [PATCH] elf loader support for auxvec base platform string, Benjamin Herrenschmidt, (Wed Jul 16, 11:35 pm)
Re: [PATCH v3] elf loader support for auxvec base platform ..., John Reiser, (Fri Jul 18, 1:31 pm)
Re: [PATCH] elf loader support for auxvec base platform string, Benjamin Herrenschmidt, (Sun Jul 20, 8:19 pm)
Re: [PATCH v3] elf loader support for auxvec base platform ..., Benjamin Herrenschmidt, (Sun Jul 20, 8:24 pm)
Re: [PATCH v3] elf loader support for auxvec base platform ..., Benjamin Herrenschmidt, (Mon Jul 21, 2:33 am)
Re: [PATCH v4] elf loader support for auxvec base platform ..., Benjamin Herrenschmidt, (Mon Jul 21, 7:03 pm)