aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-support.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-support.c')
-rw-r--r--elf/dl-support.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c
index 9b94907940..76af1883ac 100644
--- a/elf/dl-support.c
+++ b/elf/dl-support.c
@@ -66,6 +66,20 @@ void *__libc_stack_end;
/* Path where the binary is found. */
const char *_dl_origin_path;
+/* Initially empty list of loaded objects. */
+struct link_map *_dl_loaded;
+
+/* Fake scope. In dynamically linked binaries this is the scope of the
+ main application but here we don't have something like this. So
+ create a fake scope containing nothing. */
+static struct r_scope_elem fake_scope;
+/* Variable which can be used in lookup to process the global scope. */
+struct r_scope_elem *_dl_global_scope[2] = { &fake_scope, NULL };
+/* This is a global pointer to this structure which is public. It is
+ used by dlopen/dlclose to add and remove objects from what is regarded
+ to be the global scope. */
+struct r_scope_elem *_dl_main_searchlist = &fake_scope;
+
static void non_dynamic_init (void) __attribute__ ((unused));