Changes in uspace/lib/c/generic/rtld/module.c [b27ae65a:c576800] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/rtld/module.c
rb27ae65a rc576800 398 398 * be correct, "zero" offset (i.e. the total size) must be aligned 399 399 * to the strictest alignment present. 400 * Note that the padding is actually in front of the TLS data, 401 * not after it. 400 402 */ 401 403 rtld->tls_size = ALIGN_UP(rtld->tls_size, rtld->tls_align); 402 404 403 /* 404 * Space for the TCB. 405 * Later, the TLS zero offset is equal to the pointer to tcb_t, so 406 * adding the sizeof(tcb_t) block AFTER we calculated the alignment 407 * of the remainder above is correct. 408 */ 405 /* Space for the TCB. */ 409 406 rtld->tls_size += sizeof(tcb_t); 410 407 #endif
Note:
See TracChangeset
for help on using the changeset viewer.