Changes in uspace/lib/c/generic/dlfcn.c [153c7a29:5035ba05] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/dlfcn.c
r153c7a29 r5035ba05 49 49 module_t *m; 50 50 51 if (runtime_env == NULL) { 52 printf("Dynamic linker not set up -- initializing.\n"); 53 rtld_init_static(); 54 } 55 56 printf("dlopen(\"%s\", %d)\n", path, flag); 57 58 printf("module_find('%s')\n", path); 51 59 m = module_find(runtime_env, path); 52 60 if (m == NULL) { 61 printf("NULL. module_load('%s')\n", path); 53 62 m = module_load(runtime_env, path, mlf_local); 63 printf("module_load_deps(m)\n"); 54 64 module_load_deps(m, mlf_local); 55 65 /* Now relocate. */ 66 printf("module_process_relocs(m)\n"); 56 67 module_process_relocs(m); 68 } else { 69 printf("not NULL\n"); 57 70 } 58 71 … … 68 81 module_t *sm; 69 82 83 printf("dlsym(0x%lx, \"%s\")\n", (long)mod, sym_name); 70 84 sd = symbol_bfs_find(sym_name, (module_t *) mod, &sm); 71 85 if (sd != NULL) { 72 return symbol_get_addr(sd, sm , __tcb_get());86 return symbol_get_addr(sd, sm); 73 87 } 74 88
Note:
See TracChangeset
for help on using the changeset viewer.