From b41868333764bfe56ad13a13a30c52f0fa20a7c9 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 15 Apr 2025 21:31:02 +0300 Subject: [PATCH] LibELF: Add definition and values for auxiliary vectors --- .../LibELF/include/LibELF/AuxiliaryVector.h | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 userspace/libraries/LibELF/include/LibELF/AuxiliaryVector.h diff --git a/userspace/libraries/LibELF/include/LibELF/AuxiliaryVector.h b/userspace/libraries/LibELF/include/LibELF/AuxiliaryVector.h new file mode 100644 index 00000000..e133a102 --- /dev/null +++ b/userspace/libraries/LibELF/include/LibELF/AuxiliaryVector.h @@ -0,0 +1,28 @@ +#pragma once + +#include + +namespace LibELF +{ + + struct AuxiliaryVector + { + uint32_t a_type; + union + { + uint32_t a_val; + void* a_ptr; + } a_un; + }; + + enum AuxiliaryVectorValues + { + AT_NULL = 0, + AT_IGNORE = 1, + AT_EXECFD = 2, + AT_PHDR = 3, + AT_PHENT = 4, + AT_PHNUM = 5, + }; + +}