Changeset bab0f42 in mainline for uspace/lib/c/generic/rtld/rtld.c
- Timestamp:
- 2016-05-16T18:38:31Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e2f26002
- Parents:
- 29405ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/rtld/rtld.c
r29405ac rbab0f42 49 49 runtime_env = &rt_env_static; 50 50 list_initialize(&runtime_env->modules); 51 list_initialize(&runtime_env->imodules); 51 52 runtime_env->next_bias = 0x2000000; 52 53 runtime_env->program = NULL; … … 102 103 /* Initialize list of loaded modules */ 103 104 list_initialize(&env->modules); 105 list_initialize(&env->imodules); 104 106 list_append(&prog->modules_link, &env->modules); 105 107 … … 156 158 */ 157 159 offset = 0; 158 list_foreach(rtld-> modules,modules_link, module_t, m) {160 list_foreach(rtld->imodules, imodules_link, module_t, m) { 159 161 assert(offset + m->tdata_size + m->tbss_size <= rtld->tls_size); 160 162 memcpy(data + offset, m->tdata, m->tdata_size); … … 168 170 */ 169 171 offset = 0; 170 list_foreach(rtld-> modules,modules_link, module_t, m) {172 list_foreach(rtld->imodules, imodules_link, module_t, m) { 171 173 assert(offset + m->tdata_size + m->tbss_size <= rtld->tls_size); 172 174 offset += m->tbss_size;
Note:
See TracChangeset
for help on using the changeset viewer.