Subversion Repositories HelenOS

Rev

Rev 2981 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2981 Rev 2999
Line 34... Line 34...
34
 
34
 
35
#ifndef RTLD_H_
35
#ifndef RTLD_H_
36
#define RTLD_H_
36
#define RTLD_H_
37
 
37
 
38
#include <sys/types.h>
38
#include <sys/types.h>
-
 
39
#include <libadt/list.h>
39
 
40
 
40
#include <dynamic.h>
41
#include <dynamic.h>
41
 
-
 
42
typedef struct {
-
 
43
    dyn_info_t dyn;
-
 
44
    size_t bias;
-
 
45
} module_t;
42
#include <module.h>
46
 
43
 
47
typedef struct {
44
typedef struct {
48
    elf_dyn_t *rtld_dynamic;
45
    elf_dyn_t *rtld_dynamic;
49
    module_t rtld;
46
    module_t rtld;
50
 
47
 
51
    module_t *program;
48
    module_t *program;
52
    module_t *libc;
49
    module_t *libc;
-
 
50
 
-
 
51
    /** List of all loaded modules including rtld and the program */
-
 
52
    link_t modules_head;
53
} runtime_env_t;
53
} runtime_env_t;
54
 
54
 
55
void _rtld_main(void);
55
void _rtld_main(void);
56
 
56
 
57
extern runtime_env_t runtime_env;
57
extern runtime_env_t runtime_env;