Lines Matching refs:shdr
175 GElf_Shdr *shdr;
185 shdr = gelf_getshdr (scn, &shdr_mem);
186 if (shdr == NULL)
194 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
198 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
203 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
209 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
210 || (cnt == 2 && shdr->sh_flags != 0))
216 if (shdr->sh_addr != 0)
222 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15))
224 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15)
233 if ((cnt == 1 && shdr->sh_size != (strlen ("one") + 1
236 || (cnt == 2 && shdr->sh_size != 17))
242 if (shdr->sh_link != 0)
248 if (shdr->sh_info != 0)
254 if ((cnt == 1 && shdr->sh_addralign != 16)
255 || (cnt != 1 && shdr->sh_addralign != 1))
261 if (shdr->sh_entsize != 0)