Lines Matching refs:shdr
143 GElf_Shdr *shdr;
153 shdr = gelf_getshdr (scn, &shdr_mem);
154 if (shdr == NULL)
162 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
166 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
171 if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS))
177 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_EXECINSTR))
178 || (cnt == 2 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
179 || (cnt == 3 && shdr->sh_flags != 0))
185 if (shdr->sh_addr != 0)
191 if (shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 31) & ~31))
197 if ((cnt != 3 && shdr->sh_size != 0)
198 || (cnt == 3 && shdr->sh_size != 23))
204 if (shdr->sh_link != 0)
210 if (shdr->sh_info != 0)
216 if ((cnt == 1 && shdr->sh_addralign != 32)
217 || (cnt != 1 && shdr->sh_addralign != 1))
223 if (shdr->sh_entsize != 0)