Lines Matching refs:ndx
191 PRINT_SHDR_ALL, /* Print all shdr[ndx:ndx+cnt-1] */
192 PRINT_SHDR_TYPE, /* Print all shdr[ndx:ndx+cnt-1] with type */
193 /* of shdr[ndx] */
194 PRINT_SHDR_NAME, /* Print all shdr[ndx:ndx+cnt-1] with name */
195 /* of shdr[ndx] */
207 * ndx - Index of first section to display
213 Word ndx, Word cnt, PRINT_SHDR_T print_type)
219 elfedit_section_t *ref_sec = &argstate->obj_state->os_secarr[ndx];
233 for (; cnt--; ndx++) {
234 elfedit_section_t *sec = &argstate->obj_state->os_secarr[ndx];
256 elfedit_printf(MSG_INTL(MSG_ELF_SHDR), ndx,
362 Word ndx;
383 ndx = elfedit_atoshndx(argstate.argv[0], obj_state->os_shnum);
386 ndx = elfedit_type_to_shndx(obj_state,
390 ndx = elfedit_name_to_shndx(obj_state, argstate.argv[0]);
399 1 : obj_state->os_shnum - ndx;
400 print_shdr(cmd, 0, &argstate, ndx, cnt, print_type);
410 if (ndx == 0)
414 shdr_sec = &obj_state->os_secarr[ndx];
429 ndx, shdr_sec->sec_name,
435 ndx, shdr_sec->sec_name,
457 ndx, shdr_sec->sec_name,
463 ndx, shdr_sec->sec_name,
481 ndx, shdr_sec->sec_name,
487 ndx, shdr_sec->sec_name,
523 ndx, shdr_sec->sec_name,
530 ndx, shdr_sec->sec_name,
559 ndx, shdr_sec->sec_name,
565 ndx, shdr_sec->sec_name,
591 ndx, shdr_sec->sec_name,
597 ndx, shdr_sec->sec_name,
624 ndx, shdr_sec->sec_name,
640 ndx, shdr_sec->sec_name,
657 ndx, shdr_sec->sec_name,
663 ndx, shdr_sec->sec_name,
681 ndx, shdr_sec->sec_name,
687 ndx, shdr_sec->sec_name,
706 ndx, shdr_sec->sec_name,
713 ndx, shdr_sec->sec_name,
733 print_shdr(cmd, 1, &argstate, ndx, 1, PRINT_SHDR_ALL);
758 Word ndx;
764 for (ndx = 0; ndx < num_opt; ndx++) {
765 if (strcmp(argv[ndx], MSG_ORIG(MSG_STR_MINUS_SHNDX)) == 0)
767 else if (strcmp(argv[ndx], MSG_ORIG(MSG_STR_MINUS_SHTYP)) == 0)
776 for (ndx = 0; ndx < obj_state->os_shnum; ndx++, sec++)
815 Word ndx;
824 for (ndx = 0; ndx < num_opt; ndx++) {
825 if (strcmp(argv[ndx], MSG_ORIG(MSG_STR_MINUS_VALUE_SHNAM)) == 0)
827 else if (strcmp(argv[ndx],
837 for (ndx = 0; ndx < obj_state->os_shnum; ndx++, sec++)