Lines Matching refs:ndx

111 	DYN_OPT_F_DYNNDX_VAL =	16,	/* -dynndx ndx: Index is value to */
190 Word ndx;
206 ndx = argstate->dyn.null_ndx;
207 dyn = &argstate->dyn.data[ndx];
214 return (ndx);
298 Word end_ndx, ndx, printed = 0;
329 ndx = arg;
331 ndx = 0;
342 dyn = &argstate->dyn.data[ndx];
348 * only want to display one item (ndx == arg) and then quit,
353 for (; (ndx < argstate->dyn.num) &&
354 ((print_type != PRINT_DYN_T_NDX) || ((ndx == arg) || one_shot));
355 dyn++, ndx++) {
396 end_ndx = ndx;
411 Elf_dyn_null_entry(0, dyn, ndx, end_ndx);
412 ndx = end_ndx;
460 ((ndx + 1) < argstate->dyn.num)) {
461 Dyn *dyn1 = &argstate->dyn.data[ndx + 1];
505 Elf_dyn_entry(0, dyn, ndx, name,
626 Word ndx;
658 ndx = ((Word) elfedit_atoui_range(argstate->dyn_elt_str,
660 if (argstate->dyn.data[ndx].d_tag != dt_value) {
668 argstate->dyn.sec->sec_name, ndx,
670 conv_dyn_tag(argstate->dyn.data[ndx].d_tag,
673 return (ndx);
696 for (ndx = 0, dyn = argstate->dyn.data;
697 ndx < argstate->dyn.num; dyn++, ndx++) {
705 (ndx > 0) && (retndx == (ndx - 1))) {
722 retndx = ndx;
732 for (ndx = 0; ndx < argstate->dyn.num; ndx++) {
733 if (argstate->dyn.data[ndx].d_tag == dt_value) {
737 argstate->dyn.sec->sec_name, EC_WORD(ndx), arg);
738 return (ndx);
1135 Word ndx;
1155 ndx = arg_to_index(&argstate, argstate.argv[0],
1164 ndx = arg_to_index(&argstate, argstate.argv[0],
1175 ndx = arg_to_index(&argstate, argstate.argv[0],
1186 ndx = arg_to_index(&argstate, argstate.argv[0],
1194 ndx = arg_to_index(&argstate, argstate.argv[0],
1213 ndx = arg_to_index(&argstate, elfedit_atoconst_value_to_str(
1220 ndx = arg_to_index(&argstate, elfedit_atoconst_value_to_str(
1227 ndx = arg_to_index(&argstate, elfedit_atoconst_value_to_str(
1234 ndx = arg_to_index(&argstate, elfedit_atoconst_value_to_str(
1240 ndx = arg_to_index(&argstate, elfedit_atoconst_value_to_str(
1252 ndx = arg_to_index(&argstate, elfedit_atoconst_value_to_str(
1266 print_dyn(cmd, 0, &argstate, print_type, ndx);
1286 if (dyn[ndx].d_tag == d_tag) {
1289 EC_WORD(ndx), conv_dyn_tag(d_tag, osabi,
1292 Xword orig_d_tag = dyn[ndx].d_tag;
1295 dyn[ndx].d_tag = d_tag;
1310 EC_WORD(ndx), conv_dyn_tag(d_tag,
1322 if ((ndx + 1) < null_ndx)
1326 EC_WORD(ndx),
1330 if ((ndx + 1) > argstate.dyn.null_ndx)
1334 EC_WORD(ndx),
1342 dyn_ndx, dyn_name, EC_WORD(ndx),
1352 ret = cmd_body_value(&argstate, &ndx);
1359 MSG_ORIG(MSG_STR_COUNT), 1, dyn_num - ndx, NULL);
1364 sizeof (Dyn), dyn_num, ndx, cnt);
1389 sizeof (save), dyn_num, ndx, dstndx, cnt, &save);
1404 flags = flag_bitop(&argstate, dyn[ndx].d_un.d_val,
1408 if (dyn[ndx].d_un.d_val == flags) {
1411 dyn_name, EC_WORD(ndx),
1412 conv_dyn_posflag1(dyn[ndx].d_un.d_val, 0,
1417 dyn_ndx, dyn_name, EC_WORD(ndx),
1418 conv_dyn_posflag1(dyn[ndx].d_un.d_val, 0,
1422 dyn[ndx].d_un.d_val = flags;
1432 flags = flag_bitop(&argstate, dyn[ndx].d_un.d_val,
1436 if (dyn[ndx].d_un.d_val == flags) {
1439 dyn_name, EC_WORD(ndx),
1440 conv_dyn_flag(dyn[ndx].d_un.d_val, 0,
1445 dyn_ndx, dyn_name, EC_WORD(ndx),
1446 conv_dyn_flag(dyn[ndx].d_un.d_val, 0,
1450 dyn[ndx].d_un.d_val = flags;
1460 flags1 = flag_bitop(&argstate, dyn[ndx].d_un.d_val,
1464 if (dyn[ndx].d_un.d_val == flags1) {
1467 dyn_name, EC_WORD(ndx),
1468 conv_dyn_flag1(dyn[ndx].d_un.d_val,
1473 dyn_ndx, dyn_name, EC_WORD(ndx),
1474 conv_dyn_flag1(dyn[ndx].d_un.d_val,
1478 dyn[ndx].d_un.d_val = flags1;
1488 flags = flag_bitop(&argstate, dyn[ndx].d_un.d_val,
1492 if (dyn[ndx].d_un.d_val == flags) {
1495 dyn_name, EC_WORD(ndx),
1496 conv_dyn_feature1(dyn[ndx].d_un.d_val, 0,
1501 dyn_ndx, dyn_name, EC_WORD(ndx),
1502 conv_dyn_feature1(dyn[ndx].d_un.d_val, 0,
1506 dyn[ndx].d_un.d_val = flags;
1516 if (dyn[ndx].d_un.d_val == checksum) {
1519 dyn_name, EC_WORD(ndx), EC_XWORD(checksum));
1523 dyn_ndx, dyn_name, EC_WORD(ndx),
1524 EC_XWORD(dyn[ndx].d_un.d_val),
1527 dyn[ndx].d_un.d_val = checksum;
1542 if (dyn[ndx].d_un.d_val == ldmach) {
1545 dyn_name, EC_WORD(ndx),
1546 conv_ehdr_mach(dyn[ndx].d_un.d_val, 0,
1551 dyn_ndx, dyn_name, EC_WORD(ndx),
1552 conv_ehdr_mach(dyn[ndx].d_un.d_val, 0,
1556 dyn[ndx].d_un.d_val = ldmach;
1571 print_dyn(cmd, 1, &argstate, print_type, ndx);