summaryrefslogtreecommitdiff
path: root/ldso/include
diff options
context:
space:
mode:
authorramin <lordrasmus@gmail.com>2022-12-07 11:59:57 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-12-19 10:56:24 +0100
commitd869bb1600942c01a77539128f9ba5b5b55ad647 (patch)
tree6a96a569594344428c287dde032be7d36565a3ef /ldso/include
parentff95fddd7b25d207f41af05052a0b4de88322e35 (diff)
add getauxval() implementation
Diffstat (limited to 'ldso/include')
-rwxr-xr-x[-rw-r--r--]ldso/include/ldso.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h
index f19957d1d..c035b3b52 100644..100755
--- a/ldso/include/ldso.h
+++ b/ldso/include/ldso.h
@@ -148,6 +148,7 @@ extern int _dl_debug_file;
#define NULL ((void *) 0)
#endif
+
extern void *_dl_malloc(size_t size);
extern void *_dl_calloc(size_t __nmemb, size_t __size);
extern void *_dl_realloc(void *__ptr, size_t __size);
@@ -176,7 +177,7 @@ extern void _dl_dprintf(int, const char *, ...);
#endif
extern void *_dl_get_ready_to_run(struct elf_resolve *tpnt, DL_LOADADDR_TYPE load_addr,
- ElfW(auxv_t) auxvt[AT_EGID + 1], char **envp, char **argv
+ char **envp, char **argv
DL_GET_READY_TO_RUN_EXTRA_PARMS);
#ifdef HAVE_DL_INLINES_H
@@ -185,6 +186,11 @@ extern void *_dl_get_ready_to_run(struct elf_resolve *tpnt, DL_LOADADDR_TYPE loa
#else /* __ARCH_HAS_NO_SHARED__ */
#include <dl-defs.h>
+#include <dl-elf.h>
+
#endif
+#define AUX_MAX_AT_ID 40
+extern ElfW(auxv_t) _dl_auxvt[AUX_MAX_AT_ID];
+
#endif /* _LDSO_H */