Lines Matching refs:shdr
208 GElf_Shdr *shdr; in main() local
218 shdr = gelf_getshdr (escn, &shdr_mem); in main()
219 if (shdr == NULL) in main()
227 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
231 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
236 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS)) in main()
242 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
243 || (cnt == 2 && shdr->sh_flags != 0)) in main()
249 if (shdr->sh_addr != 0) in main()
255 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main()
257 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
264 if ((cnt == 1 && shdr->sh_size != sizeof (expecteddata)) in main()
265 || (cnt == 2 && shdr->sh_size != 17)) in main()
271 if (shdr->sh_link != 0) in main()
277 if (shdr->sh_info != 0) in main()
283 if ((cnt == 1 && shdr->sh_addralign != 16) in main()
284 || (cnt != 1 && shdr->sh_addralign != 1)) in main()
290 if (shdr->sh_entsize != 0) in main()