Lines Matching refs:cnt
56 size_t cnt; in main() local
155 for (cnt = 1; cnt < 5; ++cnt) in main()
161 scn = elf_getscn (elf, cnt); in main()
164 printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1)); in main()
173 cnt, elf_errmsg (-1)); in main()
179 scnnames[cnt]) != 0) in main()
181 printf ("section %Zd's name differs: %s vs %s\n", cnt, in main()
183 scnnames[cnt]); in main()
187 if (shdr->sh_type != scntypes[cnt]) in main()
189 printf ("section %Zd's type differs\n", cnt); in main()
193 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
194 || (cnt != 1 && 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()
206 if (cnt == 3) in main()