summaryrefslogtreecommitdiff
path: root/ldso/include/ldso.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-02-07 10:12:25 +0000
committerEric Andersen <andersen@codepoet.org>2004-02-07 10:12:25 +0000
commit2e723e150ab9b11e658311d6dfe2a1c1e402b833 (patch)
tree3dd87f0a3bcc014b30ba226b7efbdb1c143b08fe /ldso/include/ldso.h
parentcdf8ceb36ff80e68c0ffbde96b20cb088a9fe59b (diff)
Step one, begin shuffling things around a bit
Diffstat (limited to 'ldso/include/ldso.h')
-rw-r--r--ldso/include/ldso.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h
index 621236fdf..15f76ee80 100644
--- a/ldso/include/ldso.h
+++ b/ldso/include/ldso.h
@@ -1,3 +1,6 @@
+#ifndef _LDSO_H_
+#define _LDSO_H_
+
#include <features.h>
/* Pull in compiler and arch stuff */
#include <stdlib.h>
@@ -30,3 +33,46 @@
#define __LINUX_COMPILER_H
#endif
+
+/* Global variables used within the shared library loader */
+extern char *_dl_library_path; /* Where we look for libraries */
+extern char *_dl_preload; /* Things to be loaded before the libs */
+extern char *_dl_ldsopath; /* Where the shared lib loader was found */
+extern const char *_dl_progname; /* The name of the executable being run */
+extern unsigned char *_dl_malloc_addr; /* Lets _dl_malloc use the already allocated memory page */
+extern unsigned char *_dl_mmap_zero; /* Also used by _dl_malloc */
+extern unsigned long *_dl_brkp; /* The end of the data segment for brk and sbrk */
+extern unsigned long *_dl_envp; /* The environment address */
+extern int _dl_secure; /* Are we dealing with setuid stuff? */
+
+#ifdef __SUPPORT_LD_DEBUG__
+extern char *_dl_debug;
+extern char *_dl_debug_symbols;
+extern char *_dl_debug_move;
+extern char *_dl_debug_reloc;
+extern char *_dl_debug_detail;
+extern char *_dl_debug_nofixups;
+extern char *_dl_debug_bindings;
+extern int _dl_debug_file;
+#else
+#define _dl_debug_file 2
+#endif
+
+#ifndef NULL
+#define NULL ((void *) 0)
+#endif
+
+extern void *_dl_malloc(int size);
+extern char *_dl_getenv(const char *symbol, char **envp);
+extern void _dl_unsetenv(const char *symbol, char **envp);
+extern char *_dl_strdup(const char *string);
+extern void _dl_dprintf(int, const char *, ...);
+
+extern void _dl_get_ready_to_run(struct elf_resolve *tpnt, struct elf_resolve *app_tpnt,
+ unsigned long load_addr, unsigned long *hash_addr,
+ Elf32_auxv_t auxvt[AT_EGID + 1], char **envp, struct r_debug *debug_addr,
+ unsigned char *malloc_buffer, unsigned char *mmap_zero, char **argv);
+
+
+#endif /* _LDSO_H_ */
+