Lines Matching refs:cnt
64 size_t cnt; in main() local
155 for (cnt = 1; cnt < 3; ++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 == 2 ? 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_WRITE)) in main()
194 || (cnt == 2 && 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 == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main()
207 || (cnt == 2 in main()
213 printf ("section %Zd's offset differs\n", cnt); in main()
217 if ((cnt == 1 && shdr->sh_size != (strlen ("one") + 1 in main()
220 || (cnt == 2 && shdr->sh_size != 17)) in main()
222 printf ("section %Zd's size differs\n", cnt); in main()
228 printf ("section %Zd's link differs\n", cnt); in main()
234 printf ("section %Zd's info differs\n", cnt); in main()
238 if ((cnt == 1 && shdr->sh_addralign != 16) in main()
239 || (cnt != 1 && shdr->sh_addralign != 1)) in main()
241 printf ("section %Zd's addralign differs\n", cnt); in main()
247 printf ("section %Zd's entsize differs\n", cnt); in main()