Lines Matching refs:cnt
74 size_t cnt; in main() local
155 for (cnt = 1; cnt < 4; ++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 != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS)) in main()
189 printf ("section %zd's type differs\n", cnt); in main()
193 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_EXECINSTR)) in main()
194 || (cnt == 2 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
195 || (cnt == 3 && shdr->sh_flags != 0)) in main()
197 printf ("section %zd's flags differs\n", cnt); in main()
203 printf ("section %zd's address differs\n", cnt); in main()
209 printf ("section %zd's offset differs\n", cnt); in main()
213 if ((cnt != 3 && shdr->sh_size != 0) in main()
214 || (cnt == 3 && shdr->sh_size != 23)) in main()
216 printf ("section %zd's size differs\n", cnt); in main()
222 printf ("section %zd's link differs\n", cnt); in main()
228 printf ("section %zd's info differs\n", cnt); in main()
232 if ((cnt == 1 && shdr->sh_addralign != 32) in main()
233 || (cnt != 1 && shdr->sh_addralign != 1)) in main()
235 printf ("section %zd's addralign differs\n", cnt); in main()
241 printf ("section %zd's entsize differs\n", cnt); in main()