Lines Matching refs:shdr
158 GElf_Shdr *shdr; in main() local
168 shdr = gelf_getshdr (scn, &shdr_mem); in main()
169 if (shdr == NULL) in main()
177 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
181 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name), in main()
186 if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS)) in main()
192 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_EXECINSTR)) in main()
193 || (cnt == 2 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
194 || (cnt == 3 && shdr->sh_flags != 0)) in main()
200 if (shdr->sh_addr != 0) in main()
206 if (shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 31) & ~31)) in main()
212 if ((cnt != 3 && shdr->sh_size != 0) in main()
213 || (cnt == 3 && shdr->sh_size != 23)) in main()
219 if (shdr->sh_link != 0) in main()
225 if (shdr->sh_info != 0) in main()
231 if ((cnt == 1 && shdr->sh_addralign != 32) in main()
232 || (cnt != 1 && shdr->sh_addralign != 1)) in main()
238 if (shdr->sh_entsize != 0) in main()