Lines Matching refs:shdrs
134 Elf64_Shdr *shdrs; in fips_calc_checksum() local
142 if ((shdrs = (Elf64_Shdr *)FIPS_ALLOC(size)) == NULL) { in fips_calc_checksum()
146 if (FIPS_READ_FILE(file, (char *)shdrs, size, ehdr->e_shoff) < 0) { in fips_calc_checksum()
151 section = &(shdrs[ehdr->e_shstrndx]); in fips_calc_checksum()
163 if (process_section(&sha1ctx, &(shdrs[i]), in fips_calc_checksum()
208 Elf64_Shdr *shdrs = NULL; in get_fips_section() local
217 if ((shdrs = (Elf64_Shdr *)FIPS_ALLOC(shdrssz)) == NULL) { in get_fips_section()
221 if (FIPS_READ_FILE(file, (char *)shdrs, shdrssz, ehdr->e_shoff) < 0) { in get_fips_section()
226 section = &(shdrs[ehdr->e_shstrndx]); in get_fips_section()
238 section = &shdrs[i]; in get_fips_section()
256 if (shdrs != NULL) { in get_fips_section()
257 FIPS_FREE(shdrs, shdrssz); in get_fips_section()