From 6d7f919489f3f50fed097d3d0f6e551b06bcd296 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 29 Oct 2018 23:48:20 +0000 Subject: [PATCH] Teach procstat -x about the AT_EHDRFLAGS ELF auxiliary vector. Submitted by: Shawn Webb Reviewed by: brooks Obtained from: HardenedBSD (bb71e9889d1362df01c2e5162e84cd7a4fc029c8) MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D17067 --- usr.bin/procstat/procstat_auxv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr.bin/procstat/procstat_auxv.c b/usr.bin/procstat/procstat_auxv.c index 48377a21d412..ceee8220760c 100644 --- a/usr.bin/procstat/procstat_auxv.c +++ b/usr.bin/procstat/procstat_auxv.c @@ -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",