Lines Matching refs:sym
1112 const Elf_Sym *sym; in kexec_purgatory_get_symbol_addr() local
1115 sym = kexec_purgatory_find_symbol(pi, name); in kexec_purgatory_get_symbol_addr()
1116 if (!sym) in kexec_purgatory_get_symbol_addr()
1119 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr()
1125 return (void *)(sechdr->sh_addr + sym->st_value); in kexec_purgatory_get_symbol_addr()
1136 const Elf_Sym *sym; in kexec_purgatory_get_set_symbol() local
1140 sym = kexec_purgatory_find_symbol(pi, name); in kexec_purgatory_get_set_symbol()
1141 if (!sym) in kexec_purgatory_get_set_symbol()
1144 if (sym->st_size != size) { in kexec_purgatory_get_set_symbol()
1146 name, (unsigned long)sym->st_size, size); in kexec_purgatory_get_set_symbol()
1150 sec = pi->sechdrs + sym->st_shndx; in kexec_purgatory_get_set_symbol()
1158 sym_buf = (char *)pi->purgatory_buf + sec->sh_offset + sym->st_value; in kexec_purgatory_get_set_symbol()