Lines Matching refs:ndx

216 gelf_getphdr(Elf *elf, int ndx, GElf_Phdr *dst)
227 if (phnum <= ndx) {
239 Elf32_Phdr *p = &((Elf32_Phdr *)elf32_getphdr(elf))[ndx];
254 *dst = ((GElf_Phdr *)phdrs)[ndx];
263 gelf_update_phdr(Elf *elf, int ndx, GElf_Phdr *src)
274 if (phnum < ndx) {
281 Elf32_Phdr *dst = &((Elf32_Phdr *)elf32_getphdr(elf))[ndx];
301 dst[ndx] = *(GElf_Phdr *)src;
468 gelf_getsym(Elf_Data * data, int ndx, GElf_Sym * dst)
488 if ((entsize * ndx) >= data->d_size) {
493 s = &(((Elf32_Sym *)data->d_buf)[ndx]);
502 *dst = ((GElf_Sym *)data->d_buf)[ndx];
510 gelf_update_sym(Elf_Data *dst, int ndx, GElf_Sym *src)
530 if ((entsize * ndx) >= dst->d_size) {
536 d = &(((Elf32_Sym *)dst->d_buf)[ndx]);
547 ((Elf64_Sym *)dst->d_buf)[ndx] = *((Elf64_Sym *)src);
555 gelf_getsyminfo(Elf_Data *data, int ndx, GElf_Syminfo *dst)
574 if ((entsize * ndx) >= data->d_size) {
580 si = &(((Elf32_Syminfo *)data->d_buf)[ndx]);
584 *dst = ((GElf_Syminfo *)data->d_buf)[ndx];
591 gelf_update_syminfo(Elf_Data *dst, int ndx, GElf_Syminfo *src)
610 if ((entsize * ndx) >= dst->d_size) {
614 Elf32_Syminfo * d = &(((Elf32_Syminfo *)dst->d_buf)[ndx]);
618 ((Elf64_Syminfo *)dst->d_buf)[ndx] = *((Elf64_Syminfo *)src);
625 gelf_getdyn(Elf_Data *data, int ndx, GElf_Dyn *dst)
644 if ((entsize * ndx) >= data->d_size) {
648 Elf32_Dyn * d = &((Elf32_Dyn *)data->d_buf)[ndx];
653 *dst = ((Elf64_Dyn *)data->d_buf)[ndx];
661 gelf_update_dyn(Elf_Data *dst, int ndx, GElf_Dyn *src)
680 if ((entsize * ndx) >= dst->d_size) {
684 Elf32_Dyn * d = &((Elf32_Dyn *)dst->d_buf)[ndx];
691 ((Elf64_Dyn *)dst->d_buf)[ndx] = *(Elf64_Dyn*)src;
701 int ndx, GElf_Sym *symptr, Elf32_Word *xshndx)
703 if (gelf_getsym(symdata, ndx, symptr) == 0)
707 if ((ndx * sizeof (Elf32_Word)) >= shndxdata->d_size) {
712 *xshndx = (((Elf32_Word *)shndxdata->d_buf)[ndx]);
722 int ndx, GElf_Sym *symptr, Elf32_Word xshndx)
724 if (gelf_update_sym(symdata, ndx, symptr) == 0)
728 if ((ndx * sizeof (Elf32_Word)) >= shndxdata->d_size) {
733 ((Elf32_Word *)shndxdata->d_buf)[ndx] = xshndx;
741 gelf_getmove(Elf_Data *src, int ndx, GElf_Move *dst)
760 if ((entsize * ndx) >= src->d_size) {
764 Elf32_Move * m = &((Elf32_Move *)src->d_buf)[ndx];
773 *dst = ((Elf64_Move *)src->d_buf)[ndx];
781 gelf_update_move(Elf_Data *dest, int ndx, GElf_Move *src)
800 if ((entsize * ndx) >= dest->d_size) {
804 Elf32_Move * m = &((Elf32_Move *)dest->d_buf)[ndx];
813 ((Elf64_Move *)dest->d_buf)[ndx] = *(Elf64_Move *)src;
822 gelf_getrela(Elf_Data *src, int ndx, GElf_Rela *dst)
841 if ((entsize * ndx) >= src->d_size) {
845 Elf32_Rela * r = &((Elf32_Rela *)src->d_buf)[ndx];
859 *dst = ((Elf64_Rela *)src->d_buf)[ndx];
867 gelf_update_rela(Elf_Data *dst, int ndx, GElf_Rela *src)
886 if ((entsize * ndx) >= dst->d_size) {
890 Elf32_Rela * r = &((Elf32_Rela *)dst->d_buf)[ndx];
905 ((Elf64_Rela *)dst->d_buf)[ndx] = *(Elf64_Rela *)src;
915 gelf_getrel(Elf_Data *src, int ndx, GElf_Rel *dst)
934 if ((entsize * ndx) >= src->d_size) {
938 Elf32_Rel * r = &((Elf32_Rel *)src->d_buf)[ndx];
950 *dst = ((Elf64_Rel *)src->d_buf)[ndx];
958 gelf_update_rel(Elf_Data *dst, int ndx, GElf_Rel *src)
977 if ((entsize * ndx) >= dst->d_size) {
981 Elf32_Rel * r = &((Elf32_Rel *)dst->d_buf)[ndx];
995 ((Elf64_Rel *)dst->d_buf)[ndx] = *(Elf64_Rel *)src;
1017 gelf_getcap(Elf_Data *data, int ndx, GElf_Cap *dst)
1037 if ((entsize * ndx) >= data->d_size) {
1041 Elf32_Cap *c = &(((Elf32_Cap *)data->d_buf)[ndx]);
1046 *dst = ((GElf_Cap *)data->d_buf)[ndx];
1053 gelf_update_cap(Elf_Data *dst, int ndx, GElf_Cap *src)
1073 if ((entsize * ndx) >= dst->d_size) {
1077 Elf32_Cap *c = &(((Elf32_Cap *)dst->d_buf)[ndx]);
1082 ((Elf64_Cap *)dst->d_buf)[ndx] = *((Elf64_Cap *)src);