Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/dlfcn.c

    r153c7a29 r5035ba05  
    4949        module_t *m;
    5050
     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);
    5159        m = module_find(runtime_env, path);
    5260        if (m == NULL) {
     61                printf("NULL. module_load('%s')\n", path);
    5362                m = module_load(runtime_env, path, mlf_local);
     63                printf("module_load_deps(m)\n");
    5464                module_load_deps(m, mlf_local);
    5565                /* Now relocate. */
     66                printf("module_process_relocs(m)\n");
    5667                module_process_relocs(m);
     68        } else {
     69                printf("not NULL\n");
    5770        }
    5871
     
    6881        module_t *sm;
    6982
     83        printf("dlsym(0x%lx, \"%s\")\n", (long)mod, sym_name);
    7084        sd = symbol_bfs_find(sym_name, (module_t *) mod, &sm);
    7185        if (sd != NULL) {
    72                 return symbol_get_addr(sd, sm, __tcb_get());
     86                return symbol_get_addr(sd, sm);
    7387        }
    7488
Note: See TracChangeset for help on using the changeset viewer.