Lines Matching refs:cnt
84 size_t cnt;
112 for (cnt = 0; cnt < ninput; ++cnt)
114 if (asm_adduleb128 (scn, input[cnt]) != 0)
117 (uint32_t) input[cnt], asm_errmsg (-1));
121 if (asm_addsleb128 (scn, input[cnt]) != 0)
124 input[cnt], asm_errmsg (-1));
128 if (asm_adduleb128 (scn, -input[cnt]) != 0)
131 (uint32_t) -input[cnt], asm_errmsg (-1));
135 if (asm_addsleb128 (scn, -input[cnt]) != 0)
138 -input[cnt], asm_errmsg (-1));
189 for (cnt = 1; cnt < 3; ++cnt)
195 scn = elf_getscn (elf, cnt);
198 printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1));
207 cnt, elf_errmsg (-1));
213 scnnames[cnt]) != 0)
215 printf ("section %Zd's name differs: %s vs %s\n", cnt,
217 scnnames[cnt]);
221 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
223 printf ("section %Zd's type differs\n", cnt);
227 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
228 || (cnt == 2 && shdr->sh_flags != 0))
230 printf ("section %Zd's flags differs\n", cnt);
236 printf ("section %Zd's address differs\n", cnt);
240 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15))
241 || (cnt == 2
245 printf ("section %Zd's offset differs\n", cnt);
249 if ((cnt == 1 && shdr->sh_size != sizeof (expecteddata))
250 || (cnt == 2 && shdr->sh_size != 17))
252 printf ("section %Zd's size differs\n", cnt);
258 printf ("section %Zd's link differs\n", cnt);
264 printf ("section %Zd's info differs\n", cnt);
268 if ((cnt == 1 && shdr->sh_addralign != 16)
269 || (cnt != 1 && shdr->sh_addralign != 1))
271 printf ("section %Zd's addralign differs\n", cnt);
277 printf ("section %Zd's entsize differs\n", cnt);
281 if (cnt == 1)
287 printf ("cannot get data of section %Zd\n", cnt);
295 "expected 96\n", cnt, data->d_size);
302 printf ("data block content of section %Zd wrong\n", cnt);