Changeset f356618 in mainline for uspace/lib/c/generic/dlfcn.c


Ignore:
Timestamp:
2016-05-22T21:05:55Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
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.
Message:

Merge dynamic linking support for thread local storage.

File:
1 edited

Legend:

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

    raf2254ec rf356618  
    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);
    5951        m = module_find(runtime_env, path);
    6052        if (m == NULL) {
    61                 printf("NULL. module_load('%s')\n", path);
    6253                m = module_load(runtime_env, path, mlf_local);
    63                 printf("module_load_deps(m)\n");
    6454                module_load_deps(m, mlf_local);
    6555                /* Now relocate. */
    66                 printf("module_process_relocs(m)\n");
    6756                module_process_relocs(m);
    68         } else {
    69                 printf("not NULL\n");
    7057        }
    7158
     
    8168        module_t *sm;
    8269
    83         printf("dlsym(0x%lx, \"%s\")\n", (long)mod, sym_name);
    8470        sd = symbol_bfs_find(sym_name, (module_t *) mod, &sm);
    8571        if (sd != NULL) {
    86                 return symbol_get_addr(sd, sm);
     72                return symbol_get_addr(sd, sm, __tcb_get());
    8773        }
    8874
Note: See TracChangeset for help on using the changeset viewer.