Lines Matching defs:shdr
166 GElf_Shdr *shdr;
176 shdr = gelf_getshdr (scn, &shdr_mem);
177 if (shdr == NULL)
185 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
189 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
194 if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS))
200 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_EXECINSTR))
201 || (cnt == 2 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
202 || (cnt == 3 && shdr->sh_flags != 0))
208 if (shdr->sh_addr != 0)
214 if (shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 31) & ~31))
220 if ((cnt != 3 && shdr->sh_size != 0)
221 || (cnt == 3 && shdr->sh_size != 23))
227 if (shdr->sh_link != 0)
233 if (shdr->sh_info != 0)
239 if ((cnt == 1 && shdr->sh_addralign != 32)
240 || (cnt != 1 && shdr->sh_addralign != 1))
246 if (shdr->sh_entsize != 0)