Lines Matching full:cnt
80 size_t cnt;
178 for (cnt = 1; cnt < 3; ++cnt)
184 scn = elf_getscn (elf, cnt);
187 printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1));
196 cnt, elf_errmsg (-1));
202 scnnames[cnt]) != 0)
204 printf ("section %Zd's name differs: %s vs %s\n", cnt,
206 scnnames[cnt]);
210 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
212 printf ("section %Zd's type differs\n", cnt);
216 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
217 || (cnt == 2 && shdr->sh_flags != 0))
219 printf ("section %Zd's flags differs\n", cnt);
225 printf ("section %Zd's address differs\n", cnt);
229 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15))
230 || (cnt == 2
236 printf ("section %Zd's offset differs\n", cnt);
240 if ((cnt == 1 && shdr->sh_size != (strlen ("one") + 1
243 || (cnt == 2 && shdr->sh_size != 17))
245 printf ("section %Zd's size differs\n", cnt);
251 printf ("section %Zd's link differs\n", cnt);
257 printf ("section %Zd's info differs\n", cnt);
261 if ((cnt == 1 && shdr->sh_addralign != 16)
262 || (cnt != 1 && shdr->sh_addralign != 1))
264 printf ("section %Zd's addralign differs\n", cnt);
270 printf ("section %Zd's entsize differs\n", cnt);