summaryrefslogtreecommitdiff
path: root/ldso/include/ldso.h
diff options
context:
space:
mode:
authorGeorg Kotheimer <georg.kotheimer@kernkonzept.com>2025-03-03 16:41:14 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2025-03-04 07:43:56 +0100
commit737a0edf4d2d52c6c2836ffe24c7143b63498123 (patch)
tree6eaa7464c70ef9a9bb088f36a20b8bda20b86174 /ldso/include/ldso.h
parent227b7c825b6c79479f7222be03e83991b927da26 (diff)
Support non-cached entries in getauxval
Previously the getauxval implementation was limited to the auxiliary vector entries cached in _dl_auxvt. To also support entries outside of that cached subset, store the start address of the auxiliary vector, and if an uncached entry type is encountered search the entire auxiliary vector. Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Diffstat (limited to 'ldso/include/ldso.h')
-rwxr-xr-xldso/include/ldso.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h
index a397cce61..60e0a5bec 100755
--- a/ldso/include/ldso.h
+++ b/ldso/include/ldso.h
@@ -192,7 +192,8 @@ extern void *_dl_get_ready_to_run(struct elf_resolve *tpnt, DL_LOADADDR_TYPE loa
#endif
#define AUX_MAX_AT_ID 40
-extern ElfW(auxv_t) _dl_auxvt[AUX_MAX_AT_ID];
+extern ElfW(auxv_t) _dl_auxvt[AUX_MAX_AT_ID]; /* Cache frequently accessed auxiliary vector entries */
+extern ElfW(auxv_t) *_dl_auxv_start; /* Start of the auxiliary vector */
void load_vdso(void *sys_info_ehdr, char **envp );