Home | History | Annotate | Download | only in tests

Lines Matching refs:shdr

193       GElf_Shdr *shdr;
203 shdr = gelf_getshdr (scn, &shdr_mem);
204 if (shdr == NULL)
212 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
216 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
221 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
227 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
228 || (cnt == 2 && shdr->sh_flags != 0))
234 if (shdr->sh_addr != 0)
240 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15))
242 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15)
249 if ((cnt == 1 && shdr->sh_size != sizeof (expecteddata))
250 || (cnt == 2 && shdr->sh_size != 17))
256 if (shdr->sh_link != 0)
262 if (shdr->sh_info != 0)
268 if ((cnt == 1 && shdr->sh_addralign != 16)
269 || (cnt != 1 && shdr->sh_addralign != 1))
275 if (shdr->sh_entsize != 0)