Lines Matching refs:Elf32_Word
576 || data->d_size < sizeof (Elf32_Word)) in check_scn_group()
580 Elf32_Word *grpdata = (Elf32_Word *) data->d_buf; in check_scn_group()
581 for (size_t inner = 1; inner < data->d_size / sizeof (Elf32_Word); in check_scn_group()
583 if (grpdata[inner] == (Elf32_Word) idx) in check_scn_group()
630 Elf32_Word xndxscnidx = 0; in check_symtab()
667 Elf32_Word xndx; in check_symtab()
1954 if (shdr->sh_entsize != sizeof (Elf32_Word)) in check_symtab_shndx()
1995 if (data->d_size < sizeof (Elf32_Word) in check_symtab_shndx()
1996 || *((Elf32_Word *) data->d_buf) != 0) in check_symtab_shndx()
1999 for (size_t cnt = 1; cnt < data->d_size / sizeof (Elf32_Word); ++cnt) in check_symtab_shndx()
2001 Elf32_Word xndx = ((Elf32_Word *) data->d_buf)[cnt]; in check_symtab_shndx()
2026 Elf32_Word nbucket = ((Elf32_Word *) data->d_buf)[0]; in check_sysv_hash()
2027 Elf32_Word nchain = ((Elf32_Word *) data->d_buf)[1]; in check_sysv_hash()
2029 if (shdr->sh_size < (2ULL + nbucket + nchain) * sizeof (Elf32_Word)) in check_sysv_hash()
2034 (long int) ((2 + nbucket + nchain) * sizeof (Elf32_Word))); in check_sysv_hash()
2051 Elf32_Word *buf = (Elf32_Word *) data->d_buf; in check_sysv_hash()
2052 Elf32_Word *end = (Elf32_Word *) ((char *) data->d_buf + shdr->sh_size); in check_sysv_hash()
2137 if (data->d_size < 4 * sizeof (Elf32_Word)) in check_gnu_hash()
2145 Elf32_Word nbuckets = ((Elf32_Word *) data->d_buf)[0]; in check_gnu_hash()
2146 Elf32_Word symbias = ((Elf32_Word *) data->d_buf)[1]; in check_gnu_hash()
2147 Elf32_Word bitmask_words = ((Elf32_Word *) data->d_buf)[2]; in check_gnu_hash()
2160 Elf32_Word shift = ((Elf32_Word *) data->d_buf)[3]; in check_gnu_hash()
2164 uint64_t used_buf = (4ULL + bitmask_words + nbuckets) * sizeof (Elf32_Word); in check_gnu_hash()
2182 size_t maxidx = shdr->sh_size / sizeof (Elf32_Word) - (4 + bitmask_words in check_gnu_hash()
2193 Elf32_Word *p32; in check_gnu_hash()
2195 } bitmask = { .p32 = &((Elf32_Word *) data->d_buf)[4] }, in check_gnu_hash()
2196 collected = { .p32 = xcalloc (bitmask_words, sizeof (Elf32_Word)) }; in check_gnu_hash()
2203 Elf32_Word symidx = ((Elf32_Word *) data->d_buf)[cnt]; in check_gnu_hash()
2218 Elf32_Word chainhash = ((Elf32_Word *) data->d_buf)[4 in check_gnu_hash()
2242 Elf32_Word hval = elf_gnu_hash (symname); in check_gnu_hash()
2293 if (memcmp (collected.p32, bitmask.p32, bitmask_words * sizeof (Elf32_Word))) in check_gnu_hash()
2335 ? sizeof (Elf32_Word) : 0) in check_hash()
2420 if (gnu_hash_data->d_size < 4 * sizeof (Elf32_Word)) in compare_hash_gnu_hash()
2433 const Elf32_Word *gnu_hasharr = (Elf32_Word *) gnu_hash_data->d_buf; in compare_hash_gnu_hash()
2434 Elf32_Word gnu_nbucket = gnu_hasharr[0]; in compare_hash_gnu_hash()
2435 Elf32_Word gnu_symbias = gnu_hasharr[1]; in compare_hash_gnu_hash()
2437 const Elf32_Word *gnu_bucket = (gnu_hasharr in compare_hash_gnu_hash()
2439 const Elf32_Word *gnu_chain = gnu_bucket + gnu_hasharr[0]; in compare_hash_gnu_hash()
2450 * sizeof (Elf32_Word)); in compare_hash_gnu_hash()
2451 uint32_t max_nsyms = (gnu_hash_data->d_size - used_buf) / sizeof (Elf32_Word); in compare_hash_gnu_hash()
2460 for (Elf32_Word cnt = 0; cnt < gnu_nbucket; ++cnt) in compare_hash_gnu_hash()
2464 Elf32_Word symidx = gnu_bucket[cnt] - gnu_symbias; in compare_hash_gnu_hash()
2482 if (hash_shdr->sh_entsize == sizeof (Elf32_Word)) in compare_hash_gnu_hash()
2484 const Elf32_Word *hasharr = (Elf32_Word *) hash_data->d_buf; in compare_hash_gnu_hash()
2485 if (hash_data->d_size < 2 * sizeof (Elf32_Word)) in compare_hash_gnu_hash()
2493 Elf32_Word nbucket = hasharr[0]; in compare_hash_gnu_hash()
2494 Elf32_Word nchain = hasharr[1]; in compare_hash_gnu_hash()
2495 uint64_t hash_used = (2ULL + nchain + nbucket) * sizeof (Elf32_Word); in compare_hash_gnu_hash()
2504 const Elf32_Word *bucket = &hasharr[2]; in compare_hash_gnu_hash()
2505 const Elf32_Word *chain = &hasharr[2 + nbucket]; in compare_hash_gnu_hash()
2507 for (Elf32_Word cnt = 0; cnt < nbucket; ++cnt) in compare_hash_gnu_hash()
2509 Elf32_Word symidx = bucket[cnt]; in compare_hash_gnu_hash()
2520 if (hash_data->d_size < 2 * sizeof (Elf32_Word)) in compare_hash_gnu_hash()
2686 Elf32_Word val; in check_group()
2713 val = *((Elf32_Word *) data->d_buf); in check_group()
2724 val = *((Elf32_Word *) ((char *) data->d_buf + cnt)); in check_group()