Home | History | Annotate | Download | only in tests

Lines Matching full:shdr

216       GElf_Shdr *shdr;
226 shdr = gelf_getshdr (scn, &shdr_mem);
227 if (shdr == NULL)
235 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
239 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
244 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
250 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
251 || (cnt == 2 && shdr->sh_flags != 0))
257 if (shdr->sh_addr != 0)
263 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15))
265 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15)
272 if ((cnt == 1 && shdr->sh_size != sizeof (expecteddata))
273 || (cnt == 2 && shdr->sh_size != 17))
279 if (shdr->sh_link != 0)
285 if (shdr->sh_info != 0)
291 if ((cnt == 1 && shdr->sh_addralign != 16)
292 || (cnt != 1 && shdr->sh_addralign != 1))
298 if (shdr->sh_entsize != 0)