Changeset 29405ac in mainline for uspace/lib/c/generic/rtld/module.c
- Timestamp:
- 2016-05-16T18:10:00Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bab0f42
- Parents:
- 0dc9a474
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/rtld/module.c
r0dc9a474 r29405ac 189 189 m->tdata_size = info.tls.tdata_size; 190 190 m->tbss_size = info.tls.tbss_size; 191 m->tls_align = info.tls.tls_align; 191 192 192 193 printf("tdata at %p size %zu, tbss size %zu\n", … … 284 285 void modules_process_tls(rtld_t *rtld) 285 286 { 287 #ifdef CONFIG_TLS_VARIANT_1 286 288 list_foreach(rtld->modules, modules_link, module_t, m) { 287 289 m->ioffs = rtld->tls_size; 288 290 rtld->tls_size += m->tdata_size + m->tbss_size; 289 291 } 292 #else /* CONFIG_TLS_VARIANT_2 */ 293 size_t offs; 294 295 list_foreach(rtld->modules, modules_link, module_t, m) { 296 rtld->tls_size += m->tdata_size + m->tbss_size; 297 } 298 299 offs = 0; 300 list_foreach(rtld->modules, modules_link, module_t, m) { 301 offs += m->tdata_size + m->tbss_size; 302 m->ioffs = rtld->tls_size - offs; 303 } 304 #endif 290 305 } 291 306
Note:
See TracChangeset
for help on using the changeset viewer.