Lines Matching refs:shdr
209 GElf_Shdr *shdr;
219 shdr = gelf_getshdr (escn, &shdr_mem);
220 if (shdr == NULL)
228 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
232 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
237 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
243 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
244 || (cnt == 2 && shdr->sh_flags != 0))
250 if (shdr->sh_addr != 0)
256 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15))
258 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15)
265 if ((cnt == 1 && shdr->sh_size != sizeof (expecteddata))
266 || (cnt == 2 && shdr->sh_size != 17))
272 if (shdr->sh_link != 0)
278 if (shdr->sh_info != 0)
284 if ((cnt == 1 && shdr->sh_addralign != 16)
285 || (cnt != 1 && shdr->sh_addralign != 1))
291 if (shdr->sh_entsize != 0)