Changeset 2eadda9 in mainline for uspace/lib/c/generic/rtld/module.c
- Timestamp:
- 2018-07-11T17:45:30Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 99d3123
- Parents:
- c2c4127
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-11 17:08:12)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-11 17:45:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/rtld/module.c
rc2c4127 r2eadda9 51 51 #include <rtld/module.h> 52 52 53 #include "../private/libc.h" 54 53 55 /** Create module for static executable. 54 56 * … … 73 75 74 76 const elf_segment_header_t *tls = 75 elf_get_phdr(__ executable_start, PT_TLS);77 elf_get_phdr(__progsymbols.elfstart, PT_TLS); 76 78 77 79 if (tls) { 78 uintptr_t bias = elf_get_bias(__ executable_start);80 uintptr_t bias = elf_get_bias(__progsymbols.elfstart); 79 81 module->tdata = (void *) (tls->p_vaddr + bias); 80 82 module->tdata_size = tls->p_filesz;
Note:
See TracChangeset
for help on using the changeset viewer.