Lines Matching refs:sym
401 Elf64_Sym *sym; in arch_kexec_apply_relocations_add() local
442 sym = (void *)pi->ehdr + symtabsec->sh_offset; in arch_kexec_apply_relocations_add()
443 sym += ELF64_R_SYM(rel[i].r_info); in arch_kexec_apply_relocations_add()
445 if (sym->st_name) in arch_kexec_apply_relocations_add()
446 name = strtab + sym->st_name; in arch_kexec_apply_relocations_add()
448 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add()
451 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add()
452 sym->st_size); in arch_kexec_apply_relocations_add()
454 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add()
459 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add()
464 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add()
466 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add()
468 sym->st_shndx, name); in arch_kexec_apply_relocations_add()
471 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
473 value = sym->st_value; in arch_kexec_apply_relocations_add()