Home | History | Annotate | Download | only in tests

Lines Matching defs:shdr

159       GElf_Shdr *shdr;
169 shdr = gelf_getshdr (scn, &shdr_mem);
170 if (shdr == NULL)
178 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
182 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
187 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
193 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
194 || (cnt == 2 && shdr->sh_flags != 0))
200 if (shdr->sh_addr != 0)
206 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15))
208 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15)
217 if ((cnt == 1 && shdr->sh_size != (strlen ("one") + 1
220 || (cnt == 2 && shdr->sh_size != 17))
226 if (shdr->sh_link != 0)
232 if (shdr->sh_info != 0)
238 if ((cnt == 1 && shdr->sh_addralign != 16)
239 || (cnt != 1 && shdr->sh_addralign != 1))
245 if (shdr->sh_entsize != 0)