Lines Matching refs:idx
386 int parse_elf_section(elf_obj_t *elf, int idx, Elf32_Shdr *hdr32, Elf64_Shdr *hdr64)
390 if (idx >= elf->hdr32.e_shnum)
393 COPY_STRUCT(hdr32, elf->buf, elf->hdr32.e_shoff + idx * elf->hdr32.e_shentsize,
408 if (idx >= elf->hdr64.e_shnum)
411 COPY_STRUCT(hdr64, elf->buf, elf->hdr64.e_shoff + idx * elf->hdr64.e_shentsize,
430 char *parse_elf_string_table(elf_obj_t *elf, int s_idx, int idx)
439 s_idx, idx);
443 return (char *)(elf->buf + shdr.sh_offset + idx);
452 s_idx, idx);
456 return (char *)(elf->buf + shdr.sh_offset + idx);