Lines Matching refs:shdr
174 GElf_Shdr *shdr; in main() local
184 shdr = gelf_getshdr (scn, &shdr_mem); in main()
185 if (shdr == NULL) in main()
193 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
197 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
202 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS)) in main()
208 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
209 || (cnt == 2 && shdr->sh_flags != 0)) in main()
215 if (shdr->sh_addr != 0) in main()
221 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main()
223 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
232 if ((cnt == 1 && shdr->sh_size != (strlen ("one") + 1 in main()
235 || (cnt == 2 && shdr->sh_size != 17)) in main()
241 if (shdr->sh_link != 0) in main()
247 if (shdr->sh_info != 0) in main()
253 if ((cnt == 1 && shdr->sh_addralign != 16) in main()
254 || (cnt != 1 && shdr->sh_addralign != 1)) in main()
260 if (shdr->sh_entsize != 0) in main()