Changeset f356618 in mainline for uspace/lib/c/generic/dlfcn.c
- Timestamp:
- 2016-05-22T21:05:55Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b3364b7c
- Parents:
- af2254ec (diff), 3a9414e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/dlfcn.c
raf2254ec rf356618 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);59 51 m = module_find(runtime_env, path); 60 52 if (m == NULL) { 61 printf("NULL. module_load('%s')\n", path);62 53 m = module_load(runtime_env, path, mlf_local); 63 printf("module_load_deps(m)\n");64 54 module_load_deps(m, mlf_local); 65 55 /* Now relocate. */ 66 printf("module_process_relocs(m)\n");67 56 module_process_relocs(m); 68 } else {69 printf("not NULL\n");70 57 } 71 58 … … 81 68 module_t *sm; 82 69 83 printf("dlsym(0x%lx, \"%s\")\n", (long)mod, sym_name);84 70 sd = symbol_bfs_find(sym_name, (module_t *) mod, &sm); 85 71 if (sd != NULL) { 86 return symbol_get_addr(sd, sm );72 return symbol_get_addr(sd, sm, __tcb_get()); 87 73 } 88 74
Note:
See TracChangeset
for help on using the changeset viewer.