Support several new ELF auxiliary vector types on FreeBSD.
FreeBSD's kernel recently added several ELF auxiliary vector entries to describe the arguments passed to new executable images during exec(). The AT_FREEBSD_ARGC and AT_FREEBSD_ARGV entries give the length and address of the process argument array. AT_FREEBSD_ENVC and AT_FREEBSD_ENVV entries give the length and address of the initial process environment. AT_FREEBSD_PS_STRINGS gives the address of the 'struct ps_strings' object. include/ChangeLog: * elf/common.h (AT_FREEBSD_ARGC, AT_FREEBSD_ARGV, AT_FREEBSD_ENVC) (AT_FREEBSD_ENVV, AT_FREEBSD_PS_STRINGS): Define. gdb/ChangeLog: * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC, AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV, AT_FREEBSD_PS_STRINGS.
This commit is contained in:
parent
939b95c77b
commit
fc238d4a06
4 changed files with 21 additions and 0 deletions
|
@ -1255,6 +1255,11 @@
|
|||
#define AT_FREEBSD_HWCAP 25 /* CPU feature flags. */
|
||||
#define AT_FREEBSD_HWCAP2 26 /* CPU feature flags 2. */
|
||||
#define AT_FREEBSD_BSDFLAGS 27 /* ELF BSD Flags. */
|
||||
#define AT_FREEBSD_ARGC 28 /* Argument count. */
|
||||
#define AT_FREEBSD_ARGV 29 /* Argument vector. */
|
||||
#define AT_FREEBSD_ENVC 30 /* Environment count. */
|
||||
#define AT_FREEBSD_ENVV 31 /* Environment vvector. */
|
||||
#define AT_FREEBSD_PS_STRINGS 32 /* struct ps_strings. */
|
||||
|
||||
#define AT_SUN_UID 2000 /* Effective user ID. */
|
||||
#define AT_SUN_RUID 2001 /* Real user ID. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue