Lines Matching refs:cnt
73 size_t cnt; in main() local
154 for (cnt = 1; cnt < 4; ++cnt) in main()
160 scn = elf_getscn (elf, cnt); in main()
163 printf ("cannot get section %zd: %s\n", cnt, elf_errmsg (-1)); in main()
172 cnt, elf_errmsg (-1)); in main()
178 scnnames[cnt]) != 0) in main()
180 printf ("section %zd's name differs: %s vs %s\n", cnt, in main()
182 scnnames[cnt]); in main()
186 if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS)) in main()
188 printf ("section %zd's type differs\n", cnt); 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()
196 printf ("section %zd's flags differs\n", cnt); in main()
202 printf ("section %zd's address differs\n", cnt); in main()
208 printf ("section %zd's offset differs\n", cnt); in main()
212 if ((cnt != 3 && shdr->sh_size != 0) in main()
213 || (cnt == 3 && shdr->sh_size != 23)) in main()
215 printf ("section %zd's size differs\n", cnt); in main()
221 printf ("section %zd's link differs\n", cnt); in main()
227 printf ("section %zd's info differs\n", cnt); in main()
231 if ((cnt == 1 && shdr->sh_addralign != 32) in main()
232 || (cnt != 1 && shdr->sh_addralign != 1)) in main()
234 printf ("section %zd's addralign differs\n", cnt); in main()
240 printf ("section %zd's entsize differs\n", cnt); in main()