Changeset 2eadda9 in mainline for uspace/lib/c/generic/tls.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/tls.c
rc2c4127 r2eadda9 45 45 #include <elf/elf.h> 46 46 47 #include "private/libc.h" 48 47 49 #ifdef CONFIG_RTLD 48 50 #include <rtld/rtld.h> … … 61 63 62 64 const elf_segment_header_t *tls = 63 elf_get_phdr(__ executable_start, PT_TLS);65 elf_get_phdr(__progsymbols.elfstart, PT_TLS); 64 66 65 67 if (tls == NULL) … … 88 90 89 91 const elf_segment_header_t *tls = 90 elf_get_phdr(__ executable_start, PT_TLS);92 elf_get_phdr(__progsymbols.elfstart, PT_TLS); 91 93 if (tls == NULL) 92 94 return NULL; 93 95 94 uintptr_t bias = elf_get_bias(__ executable_start);96 uintptr_t bias = elf_get_bias(__progsymbols.elfstart); 95 97 size_t align = max(tls->p_align, _Alignof(tcb_t)); 96 98 … … 128 130 #endif 129 131 const elf_segment_header_t *tls = 130 elf_get_phdr(__ executable_start, PT_TLS);132 elf_get_phdr(__progsymbols.elfstart, PT_TLS); 131 133 132 134 assert(tls != NULL);
Note:
See TracChangeset
for help on using the changeset viewer.