Rev 3689 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3689 | Rev 3869 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | 44 | ||
45 | void *dlopen(const char *path, int flag) |
45 | void *dlopen(const char *path, int flag) |
46 | { |
46 | { |
47 | module_t *m; |
47 | module_t *m; |
48 | 48 | ||
- | 49 | if (runtime_env == NULL) { |
|
- | 50 | printf("Dynamic linker not set up -- initializing.\n"); |
|
- | 51 | rtld_init_static(); |
|
- | 52 | } |
|
- | 53 | ||
49 | printf("dlopen(\"%s\", %d)\n", path, flag); |
54 | printf("dlopen(\"%s\", %d)\n", path, flag); |
50 | 55 | ||
51 | printf("module_find('%s')\n", path); |
56 | printf("module_find('%s')\n", path); |
52 | m = module_find(path); |
57 | m = module_find(path); |
53 | if (m == NULL) { |
58 | if (m == NULL) { |