Lines Matching refs:symshdr
1373 size_t cnt, const GElf_Shdr *symshdr, Elf_Data *symdata, in check_one_reloc() argument
1393 if (symshdr != NULL in check_one_reloc()
1396 > symshdr->sh_size)) in check_one_reloc()
1413 && (name = elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name)) in check_one_reloc()
1512 GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem); in check_rela() local
1529 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rela()
1563 GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem); in check_rel() local
1580 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rel()
1942 GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem); in check_symtab_shndx() local
1943 if (symshdr != NULL && symshdr->sh_type != SHT_SYMTAB) in check_symtab_shndx()
1947 else if (symshdr == NULL) in check_symtab_shndx()
1960 if (symshdr != NULL in check_symtab_shndx()
1962 && symshdr->sh_entsize != 0 in check_symtab_shndx()
1964 < symshdr->sh_size / symshdr->sh_entsize)) in check_symtab_shndx()
2025 GElf_Shdr *symshdr) in check_sysv_hash() argument
2041 if (symshdr != NULL && symshdr->sh_entsize != 0) in check_sysv_hash()
2043 size_t symsize = symshdr->sh_size / symshdr->sh_entsize; in check_sysv_hash()
2045 if (nchain > symshdr->sh_size / symshdr->sh_entsize) in check_sysv_hash()
2079 GElf_Shdr *symshdr) in check_sysv_hash64() argument
2098 if (symshdr != NULL && symshdr->sh_entsize != 0) in check_sysv_hash64()
2100 size_t symsize = symshdr->sh_size / symshdr->sh_entsize; in check_sysv_hash64()
2102 if (nchain > symshdr->sh_size / symshdr->sh_entsize) in check_sysv_hash64()
2136 GElf_Shdr *symshdr) in check_gnu_hash() argument
2186 if (symshdr != NULL && symshdr->sh_entsize != 0) in check_gnu_hash()
2187 maxidx = MIN (maxidx, symshdr->sh_size / symshdr->sh_entsize); in check_gnu_hash()
2238 ? elf_strptr (ebl->elf, symshdr->sh_link, in check_gnu_hash()
2287 else if (symshdr != NULL && symshdr->sh_entsize != 0 in check_gnu_hash()
2288 && symidx > symshdr->sh_size / symshdr->sh_entsize) in check_gnu_hash()
2323 GElf_Shdr *symshdr = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link), in check_hash() local
2325 if (symshdr != NULL && symshdr->sh_type != SHT_DYNSYM) in check_hash()
2329 else if (symshdr == NULL) in check_hash()
2360 check_sysv_hash64 (ebl, shdr, data, idx, symshdr); in check_hash()
2362 check_sysv_hash (ebl, shdr, data, idx, symshdr); in check_hash()
2366 check_gnu_hash (ebl, shdr, data, idx, symshdr); in check_hash()
2635 GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem); in check_group() local
2636 if (symshdr == NULL) in check_group()
2641 if (symshdr->sh_type != SHT_SYMTAB) in check_group()
2646 if (shdr->sh_info >= symshdr->sh_size / gelf_fsize (ebl->elf, ELF_T_SYM, in check_group()
2663 else if (elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name) == NULL) in check_group()
2667 else if (strcmp (elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name), in check_group()
2950 GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem); in check_versym() local
2951 if (symshdr == NULL) in check_versym()
2955 if (symshdr->sh_type != SHT_DYNSYM) in check_versym()
2966 if (shdr->sh_entsize != 0 && symshdr->sh_entsize != 0 in check_versym()
2968 != symshdr->sh_size / symshdr->sh_entsize)) in check_versym()