Lines Matching refs:sym
250 const ElfW(Sym) *refsym, const ElfW(Sym) *sym, in elf_machine_fixup_plt()
331 const Elf32_Rel *reloc, const Elf32_Sym *sym, in elf_machine_rel() argument
362 const Elf32_Sym *const refsym = sym; in elf_machine_rel()
363 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, in elf_machine_rel()
365 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rel()
367 if (sym != NULL in elf_machine_rel()
368 && __builtin_expect (ELFW(ST_TYPE) (sym->st_info) == STT_GNU_IFUNC, 0) in elf_machine_rel()
369 && __builtin_expect (sym->st_shndx != SHN_UNDEF, 1) in elf_machine_rel()
376 if (sym == NULL) in elf_machine_rel()
380 if (sym->st_size > refsym->st_size in elf_machine_rel()
381 || (GLRO(dl_verbose) && sym->st_size < refsym->st_size)) in elf_machine_rel()
391 MIN (sym->st_size, refsym->st_size)); in elf_machine_rel()
397 if (sym != NULL && sym->st_value == 0) in elf_machine_rel()
436 if (! sym) in elf_machine_rel()
444 value = sym->st_value; in elf_machine_rel()
482 if (sym != NULL) in elf_machine_rel()
483 *reloc_addr += sym->st_value; in elf_machine_rel()
487 if (sym != NULL) in elf_machine_rel()
490 *reloc_addr += sym->st_value + sym_map->l_tls_offset; in elf_machine_rel()
511 const Elf32_Rela *reloc, const Elf32_Sym *sym, in elf_machine_rela() argument
525 const Elf32_Sym *const refsym = sym; in elf_machine_rela()
527 struct link_map *sym_map = RESOLVE_MAP (map, scope, &sym, version, r_type); in elf_machine_rela()
528 Elf32_Addr value = SYMBOL_ADDRESS (sym_map, sym, true); in elf_machine_rela()
530 if (sym != NULL in elf_machine_rela()
531 && __builtin_expect (ELFW(ST_TYPE) (sym->st_info) == STT_GNU_IFUNC, 0) in elf_machine_rela()
532 && __builtin_expect (sym->st_shndx != SHN_UNDEF, 1) in elf_machine_rela()
541 if (sym == NULL) in elf_machine_rela()
545 if (sym->st_size > refsym->st_size in elf_machine_rela()
546 || (GLRO(dl_verbose) && sym->st_size < refsym->st_size)) in elf_machine_rela()
556 MIN (sym->st_size, refsym->st_size)); in elf_machine_rela()
576 *reloc_addr = (sym == NULL ? 0 : sym->st_value) + reloc->r_addend; in elf_machine_rela()
580 if (sym != NULL) in elf_machine_rela()
583 *reloc_addr = (sym->st_value + sym_map->l_tls_offset in elf_machine_rela()
642 const ElfW (Sym) *sym = &symtab[symndx]; in elf_machine_lazy_rel()
654 elf_machine_rel (map, scope, reloc, sym, version, reloc_addr, skip_ifunc); in elf_machine_lazy_rel()