Rev 3686 | Rev 3772 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3686 | Rev 3689 | ||
---|---|---|---|
Line 77... | Line 77... | ||
77 | list_append(&prog.modules_link, &runtime_env->modules_head); |
77 | list_append(&prog.modules_link, &runtime_env->modules_head); |
78 | 78 | ||
79 | /* Pointer to program module. Used as root of the module graph. */ |
79 | /* Pointer to program module. Used as root of the module graph. */ |
80 | runtime_env->program = &prog; |
80 | runtime_env->program = &prog; |
81 | 81 | ||
- | 82 | /* Work around non-existent memory space allocation. */ |
|
- | 83 | runtime_env->next_bias = 0x100000; |
|
- | 84 | ||
82 | /* |
85 | /* |
83 | * Now we can continue with loading all other modules. |
86 | * Now we can continue with loading all other modules. |
84 | */ |
87 | */ |
85 | 88 | ||
86 | DPRINTF("Load all program dependencies\n"); |
89 | DPRINTF("Load all program dependencies\n"); |
Line 90... | Line 93... | ||
90 | * Now relocate/link all modules together. |
93 | * Now relocate/link all modules together. |
91 | */ |
94 | */ |
92 | 95 | ||
93 | /* Process relocations in all modules */ |
96 | /* Process relocations in all modules */ |
94 | DPRINTF("Relocate all modules\n"); |
97 | DPRINTF("Relocate all modules\n"); |
95 | modules_process_relocs(); |
98 | modules_process_relocs(&prog); |
96 | 99 | ||
97 | /* Pass runtime evironment pointer through PCB. */ |
100 | /* Pass runtime evironment pointer through PCB. */ |
98 | __pcb->rtld_runtime = (void *) runtime_env; |
101 | __pcb->rtld_runtime = (void *) runtime_env; |
99 | 102 | ||
100 | /* |
103 | /* |