Changeset 5035ba05 in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2016-05-02T19:49:51Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
32573ff, 9a08e6b
Parents:
634e020
Message:

Default symbol search vs. dlsym's BFS search.

Location:
uspace/lib/c/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/rtld/module.h

    r634e020 r5035ba05  
    4444extern void module_process_relocs(module_t *);
    4545extern module_t *module_find(rtld_t *, const char *);
    46 extern module_t *module_load(rtld_t *, const char *);
    47 extern void module_load_deps(module_t *);
     46extern module_t *module_load(rtld_t *, const char *, mlflags_t);
     47extern void module_load_deps(module_t *, mlflags_t);
    4848
    4949extern void modules_process_relocs(rtld_t *, module_t *);
  • uspace/lib/c/include/rtld/symbol.h

    r634e020 r5035ba05  
    4343        /** No flags */
    4444        ssf_none = 0,
    45         /** Do not search tree root */
    46         ssf_noroot = 0x1
     45        /** Do not search in the executable */
     46        ssf_noexec = 0x1
    4747} symbol_search_flags_t;
    4848
    49 extern elf_symbol_t *symbol_bfs_find(const char *, module_t *,
    50     symbol_search_flags_t, module_t **);
     49extern elf_symbol_t *symbol_bfs_find(const char *, module_t *, module_t **);
    5150extern elf_symbol_t *symbol_def_find(const char *, module_t *,
    5251    symbol_search_flags_t, module_t **);
  • uspace/lib/c/include/types/rtld/module.h

    r634e020 r5035ba05  
    3939#include <sys/types.h>
    4040
     41typedef enum {
     42        /** Do not export symbols to global namespace */
     43        mlf_local = 0x1
     44} mlflags_t;
     45
     46/** Dynamically linked module */
    4147typedef struct module {
    4248        dyn_info_t dyn;
     
    6066        /** Tag for modules already processed during a BFS */
    6167        bool bfs_tag;
     68        /** If @c true, does not export symbols to global namespace */
     69        bool local;
     70        /** This is the dynamically linked executable */
     71        bool exec;
    6272} module_t;
    6373
Note: See TracChangeset for help on using the changeset viewer.