Lines Matching refs:symshdr
1372 size_t cnt, const GElf_Shdr *symshdr, Elf_Data *symdata, in check_one_reloc() argument
1392 if (symshdr != NULL in check_one_reloc()
1395 > symshdr->sh_size)) in check_one_reloc()
1412 && (name = elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name)) in check_one_reloc()
1511 GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem); in check_rela() local
1528 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rela()
1562 GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem); in check_rel() local
1579 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rel()
1941 GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem); in check_symtab_shndx() local
1942 if (symshdr != NULL && symshdr->sh_type != SHT_SYMTAB) in check_symtab_shndx()
1946 else if (symshdr == NULL) in check_symtab_shndx()
1959 if (symshdr != NULL in check_symtab_shndx()
1961 && symshdr->sh_entsize != 0 in check_symtab_shndx()
1963 < symshdr->sh_size / symshdr->sh_entsize)) in check_symtab_shndx()
2024 GElf_Shdr *symshdr) in check_sysv_hash() argument
2040 if (symshdr != NULL && symshdr->sh_entsize != 0) in check_sysv_hash()
2042 size_t symsize = symshdr->sh_size / symshdr->sh_entsize; in check_sysv_hash()
2044 if (nchain > symshdr->sh_size / symshdr->sh_entsize) in check_sysv_hash()
2078 GElf_Shdr *symshdr) in check_sysv_hash64() argument
2097 if (symshdr != NULL && symshdr->sh_entsize != 0) in check_sysv_hash64()
2099 size_t symsize = symshdr->sh_size / symshdr->sh_entsize; in check_sysv_hash64()
2101 if (nchain > symshdr->sh_size / symshdr->sh_entsize) in check_sysv_hash64()
2135 GElf_Shdr *symshdr) in check_gnu_hash() argument
2185 if (symshdr != NULL && symshdr->sh_entsize != 0) in check_gnu_hash()
2186 maxidx = MIN (maxidx, symshdr->sh_size / symshdr->sh_entsize); in check_gnu_hash()
2237 ? elf_strptr (ebl->elf, symshdr->sh_link, in check_gnu_hash()
2286 else if (symshdr != NULL && symshdr->sh_entsize != 0 in check_gnu_hash()
2287 && symidx > symshdr->sh_size / symshdr->sh_entsize) in check_gnu_hash()
2322 GElf_Shdr *symshdr = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link), in check_hash() local
2324 if (symshdr != NULL && symshdr->sh_type != SHT_DYNSYM) in check_hash()
2328 else if (symshdr == NULL) in check_hash()
2359 check_sysv_hash64 (ebl, shdr, data, idx, symshdr); in check_hash()
2361 check_sysv_hash (ebl, shdr, data, idx, symshdr); in check_hash()
2365 check_gnu_hash (ebl, shdr, data, idx, symshdr); in check_hash()
2634 GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem); in check_group() local
2635 if (symshdr == NULL) in check_group()
2640 if (symshdr->sh_type != SHT_SYMTAB) in check_group()
2645 if (shdr->sh_info >= symshdr->sh_size / gelf_fsize (ebl->elf, ELF_T_SYM, in check_group()
2662 else if (elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name) == NULL) in check_group()
2666 else if (strcmp (elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name), in check_group()
2949 GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem); in check_versym() local
2950 if (symshdr == NULL) in check_versym()
2954 if (symshdr->sh_type != SHT_DYNSYM) in check_versym()
2965 if (shdr->sh_entsize != 0 && symshdr->sh_entsize != 0 in check_versym()
2967 != symshdr->sh_size / symshdr->sh_entsize)) in check_versym()