• Home
  • Raw
  • Download

Lines Matching refs:cnt

301   elf->state.elf32.scns.cnt = scncnt;  in file_read_elf()
333 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf() local
335 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
336 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
337 elf->state.elf32.scns.data[cnt].shdr.e32 = in file_read_elf()
338 &elf->state.elf32.shdr[cnt]; in file_read_elf()
339 if (likely (elf->state.elf32.shdr[cnt].sh_offset < maxsize) in file_read_elf()
340 && likely (maxsize - elf->state.elf32.shdr[cnt].sh_offset in file_read_elf()
341 <= elf->state.elf32.shdr[cnt].sh_size)) in file_read_elf()
342 elf->state.elf32.scns.data[cnt].rawdata_base = in file_read_elf()
343 elf->state.elf32.scns.data[cnt].data_base = in file_read_elf()
345 + elf->state.elf32.shdr[cnt].sh_offset); in file_read_elf()
346 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf()
351 if (elf->state.elf32.shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in file_read_elf()
352 && elf->state.elf32.shdr[cnt].sh_link < scncnt) in file_read_elf()
353 elf->state.elf32.scns.data[elf->state.elf32.shdr[cnt].sh_link].shndx_index in file_read_elf()
354 = cnt; in file_read_elf()
358 if (elf->state.elf32.scns.data[cnt].shndx_index == 0) in file_read_elf()
359 elf->state.elf32.scns.data[cnt].shndx_index = -1; in file_read_elf()
385 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf() local
387 elf->state.elf32.scns.data[cnt].index = cnt; in file_read_elf()
388 elf->state.elf32.scns.data[cnt].elf = elf; in file_read_elf()
389 elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns; in file_read_elf()
419 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf() local
421 elf->state.elf64.scns.data[cnt].index = cnt; in file_read_elf()
422 elf->state.elf64.scns.data[cnt].elf = elf; in file_read_elf()
423 elf->state.elf64.scns.data[cnt].shdr.e64 = in file_read_elf()
424 &elf->state.elf64.shdr[cnt]; in file_read_elf()
425 if (likely (elf->state.elf64.shdr[cnt].sh_offset < maxsize) in file_read_elf()
426 && likely (maxsize - elf->state.elf64.shdr[cnt].sh_offset in file_read_elf()
427 <= elf->state.elf64.shdr[cnt].sh_size)) in file_read_elf()
428 elf->state.elf64.scns.data[cnt].rawdata_base = in file_read_elf()
429 elf->state.elf64.scns.data[cnt].data_base = in file_read_elf()
431 + elf->state.elf64.shdr[cnt].sh_offset); in file_read_elf()
432 elf->state.elf64.scns.data[cnt].list = &elf->state.elf64.scns; in file_read_elf()
437 if (elf->state.elf64.shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in file_read_elf()
438 && elf->state.elf64.shdr[cnt].sh_link < scncnt) in file_read_elf()
439 elf->state.elf64.scns.data[elf->state.elf64.shdr[cnt].sh_link].shndx_index in file_read_elf()
440 = cnt; in file_read_elf()
444 if (elf->state.elf64.scns.data[cnt].shndx_index == 0) in file_read_elf()
445 elf->state.elf64.scns.data[cnt].shndx_index = -1; in file_read_elf()
471 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf() local
473 elf->state.elf64.scns.data[cnt].index = cnt; in file_read_elf()
474 elf->state.elf64.scns.data[cnt].elf = elf; in file_read_elf()
475 elf->state.elf64.scns.data[cnt].list = &elf->state.elf64.scns; in file_read_elf()