Lines Matching refs:sym_map
296 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rel() local
298 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rel()
306 if (sym_map != map in elf_machine_rel()
307 && !sym_map->l_relocated) in elf_machine_rel()
311 if (sym_map->l_type == lt_executable) in elf_machine_rel()
321 sym_map->l_name, in elf_machine_rel()
351 if (sym_map != NULL) in elf_machine_rel()
352 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rel()
376 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rel()
378 if (!TRY_STATIC_TLS (map, sym_map)) in elf_machine_rel()
381 (sym_map, sym->st_value + (ElfW(Word))td->arg); in elf_machine_rel()
388 td->arg = (void*)(sym->st_value - sym_map->l_tls_offset in elf_machine_rel()
406 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rel()
407 *reloc_addr += sym_map->l_tls_offset - sym->st_value; in elf_machine_rel()
421 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rel()
422 *reloc_addr += sym->st_value - sym_map->l_tls_offset; in elf_machine_rel()
485 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rela() local
487 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
515 if (sym_map != NULL) in elf_machine_rela()
516 *reloc_addr = sym_map->l_tls_modid; in elf_machine_rela()
539 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
541 if (!TRY_STATIC_TLS (map, sym_map)) in elf_machine_rela()
544 (sym_map, sym->st_value + reloc->r_addend); in elf_machine_rela()
551 td->arg = (void*)(sym->st_value - sym_map->l_tls_offset in elf_machine_rela()
566 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
567 *reloc_addr = sym_map->l_tls_offset - sym->st_value in elf_machine_rela()
578 CHECK_STATIC_TLS (map, sym_map); in elf_machine_rela()
579 *reloc_addr = sym->st_value - sym_map->l_tls_offset in elf_machine_rela()