Home
last modified time | relevance | path

Searched refs:mod (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/bionic/
Dlibc_init_static.cpp139 static TlsModule mod; in layout_static_tls() local
141 if (__bionic_get_tls_segment(phdr_start, phdr_ct, 0, &mod.segment)) { in layout_static_tls()
142 if (!__bionic_check_tls_alignment(&mod.segment.alignment)) { in layout_static_tls()
144 progname, mod.segment.alignment); in layout_static_tls()
146 mod.static_offset = layout.reserve_exe_segment_and_tcb(&mod.segment, progname); in layout_static_tls()
147 mod.first_generation = kTlsGenerationFirst; in layout_static_tls()
150 modules.module_table = &mod; in layout_static_tls()
Dbionic_elf_tls.cpp262 const TlsModule& mod = modules.module_table[i]; in update_tls_dtv() local
263 if (mod.static_offset != SIZE_MAX) { in update_tls_dtv()
264 dtv->modules[i] = static_tls + mod.static_offset; in update_tls_dtv()
267 if (mod.first_generation != kTlsGenerationNone && in update_tls_dtv()
268 mod.first_generation <= dtv->generation) { in update_tls_dtv()
/bionic/linker/
Dlinker_tls.cpp90 TlsModule& mod = g_tls_modules[__tls_module_id_to_idx(si_tls->module_id)]; in unregister_tls_module() local
91 CHECK(mod.static_offset == SIZE_MAX); in unregister_tls_module()
92 CHECK(mod.soinfo_ptr == si); in unregister_tls_module()
93 mod = {}; in unregister_tls_module()
Dlinker_relocate.cpp383 const TlsModule& mod = get_tls_module(found_in->get_tls()->module_id); in process_relocation_impl() local
384 if (mod.static_offset != SIZE_MAX) { in process_relocation_impl()
385 tpoff += mod.static_offset - relocator.tls_tp_base; in process_relocation_impl()
440 const TlsModule& mod = get_tls_module(module_id); in process_relocation_impl() local
441 if (mod.static_offset != SIZE_MAX) { in process_relocation_impl()
443 desc->arg = mod.static_offset - relocator.tls_tp_base + sym_addr + addend; in process_relocation_impl()
445 rel_target, mod.static_offset, relocator.tls_tp_base, in process_relocation_impl()
450 .generation = mod.first_generation, in process_relocation_impl()
/bionic/libc/upstream-openbsd/lib/libc/net/
Dres_random.c114 pmod(u_int16_t gen, u_int16_t exp, u_int16_t mod) in pmod() argument
124 s = (s * t) % mod; in pmod()
126 t = (t * t) % mod; in pmod()