Lines Matching defs:ndx
179 size_t ndx, size_t shdrstrndx, size_t shdrnum)
183 fail_idx ("Expected data in section", fname, ndx);
186 fail_idx ("Couldn't allocated buffer for section", NULL, ndx);
187 newscnbufs[newsecndx (ndx, shdrstrndx, shdrnum, fname,
188 "section", ndx, "d_buf", 0)] = d->d_buf = b;
458 size_t ndx = elf_ndxscn (scn);
463 fail_elf_idx ("Couldn't get shdr", fname, ndx);
466 if (ndx == 0 || ndx == shdrstrndx)
471 fail_elf_idx ("couldn't create new section", fnew, ndx);
475 ? dwelf_strent_off (scnstrents[ndx]) : 0);
482 fname, "shdr", ndx, "sh_link", 0);
487 fname, "shdr", ndx, "sh_info", 0);
499 fail_elf_idx ("Couldn't create new data for section", fnew, ndx);
500 if (ndx == strtabndx)
510 fail_elf_idx ("Couldn't get data from section", fname, ndx);
521 if (update_name && ndx != symtabndx)
523 new_data_buf (newdata, fname, ndx, shdrstrndx, shdrnum);
536 " for old shdrstrndx %zd\n", ndx, i, shdrstrndx);
540 fname, "section", ndx, "symbol", i);
554 new_data_buf (newdata, fname, ndx, shdrstrndx, shdrnum);
562 fail_idx ("Not enough data in group section", fname, ndx);
566 fname, "section", ndx, "group", i);
572 new_data_buf (newdata, fname, ndx, shdrstrndx, shdrnum);
585 fname, "section", ndx, "shndx", i);
633 fail_elf_idx ("Couldn't update section header", fnew, ndx);