Teach procstat -x about the AT_EHDRFLAGS ELF auxiliary vector.

Submitted by:	Shawn Webb <lattera@gmail.com>
Reviewed by:	brooks
Obtained from:	HardenedBSD (bb71e9889d1362df01c2e5162e84cd7a4fc029c8)
MFC after:	2 months
Differential Revision:	https://reviews.freebsd.org/D17067
This commit is contained in:
John Baldwin 2018-10-29 23:48:20 +00:00
parent 93177620ee
commit 6d7f919489

View File

@ -178,6 +178,12 @@ procstat_auxv(struct procstat *procstat, struct kinfo_proc *kipp)
xo_emit("{dw:/%s}{Lw:/%-16s/%s}{:AT_TIMEKEEP/%p}\n",
prefix, "AT_TIMEKEEP", auxv[i].a_un.a_ptr);
break;
#endif
#ifdef AT_EHDRFLAGS
case AT_EHDRFLAGS:
xo_emit("{dw:/%s}{Lw:/%-16s/%s}{:AT_EHDRFLAGS/%#lx}\n",
prefix, "AT_EHDRFLAGS", (u_long)auxv[i].a_un.a_val);
break;
#endif
default:
xo_emit("{dw:/%s}{Lw:/%16ld/%ld}{:UNKNOWN/%#lx}\n",