Changeset 17341d4 in mainline for uspace/lib/c/generic/rtld/symbol.c


Ignore:
Timestamp:
2016-04-20T17:25:48Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dc0d8b52
Parents:
13dfa3f9
Message:

Move rtld internals out of loader. Stop misusing rtld instance from current environment for loading dynamically linked executables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/rtld/symbol.c

    r13dfa3f9 r17341d4  
    3939
    4040#include <elf/elf.h>
     41#include <rtld/module.h>
    4142#include <rtld/rtld.h>
    4243#include <rtld/rtld_debug.h>
     
    132133
    133134        /* Mark all vertices (modules) as unvisited */ 
    134         modules_untag();
     135        modules_untag(start->rtld);
    135136
    136137        /* Insert root (the program) into the queue and tag it */
     
    219220        /* Not DT_SYMBOLIC or no match. Now try other locations. */
    220221
    221         if (runtime_env->program) {
     222        if (origin->rtld->program) {
    222223                /* Program is dynamic -- start with program as root. */
    223                 return symbol_bfs_find(name, runtime_env->program, flags, mod);
     224                return symbol_bfs_find(name, origin->rtld->program, flags, mod);
    224225        } else {
    225226                /* Program is static -- start with @a origin as root. */
Note: See TracChangeset for help on using the changeset viewer.