Lines Matching refs:ndx
125 SYM_OPT_F_SHNDX = 32, /* -shndx ndx: section spec. by index */
150 Word ndx; /* If argstate.argc > 0, this is the table index */
239 * ndx - Index of first symbol to display
243 dump_symtab(ARGSTATE *argstate, SYMSTATE *symstate, Word ndx, Word cnt)
258 sym = symstate->sym.data + ndx;
273 for (; cnt-- > 0; ndx++, sym++) {
275 MSG_ORIG(MSG_FMT_INDEX), EC_XWORD(ndx));
277 symstate->versym.data[ndx];
282 shndx = symstate->xshndx.data[ndx];
311 sym1 = &symstate1->sym.data[symstate1->ndx];
312 sym2 = &symstate2->sym.data[symstate2->ndx];
367 data[symstate1->ndx];
375 data[symstate2->ndx];
420 * ndx - Index of first symbol to display
425 elfedit_outstyle_t outstyle, Word ndx, Word cnt)
436 dump_symtab(argstate, symstate, ndx, cnt);
447 for (sym += ndx; cnt--; sym++) {
463 for (sym += ndx; cnt-- > 0; sym++)
475 for (sym += ndx; cnt--; sym++) {
488 for (sym += ndx; cnt-- > 0; sym++)
498 for (; cnt--; ndx++) {
499 value = sym[ndx].st_shndx;
502 value = symstate->xshndx.data[ndx];
520 for (sym += ndx; cnt--; sym++)
530 for (sym += ndx; cnt--; sym++) {
550 for (sym += ndx; cnt--; sym++)
559 for (sym += ndx; cnt--; sym++) {
588 * ndx - Index of first symbol to display
594 Word ndx, tblndx;
654 ndx = 0;
657 ndx = symstate->ndx;
665 print_symstate(cmd, argstate, symstate, outstyle, ndx, cnt);
685 Sym *sym = &symstate->sym.data[symstate->ndx];
704 EC_WORD(symstate->ndx), MSG_ORIG(MSG_CMD_ST_BIND),
715 if ((bind == STB_LOCAL) && (symstate->ndx >= gbl_ndx))
719 symstate->ndx, EC_WORD(symndx), gbl_ndx);
720 if ((bind != STB_LOCAL) && (symstate->ndx < gbl_ndx))
724 symstate->ndx, EC_WORD(symndx), gbl_ndx);
728 EC_WORD(symstate->ndx), MSG_ORIG(MSG_CMD_ST_BIND),
743 Sym *sym = &symstate->sym.data[symstate->ndx];
765 EC_WORD(symstate->ndx), MSG_ORIG(MSG_CMD_ST_NAME),
777 EC_WORD(symstate->ndx));
781 EC_WORD(symstate->ndx), MSG_ORIG(MSG_CMD_ST_NAME),
795 Sym *sym = &symstate->sym.data[symstate->ndx];
856 (symstate->xshndx.data[symstate->ndx] != xshndx);
865 if ((symstate->ndx == 0) && (shndx != SHN_UNDEF))
890 symstate->sym.sec->sec_name, EC_WORD(symstate->ndx),
897 EC_WORD(symstate->ndx), MSG_ORIG(MSG_CMD_ST_SHNDX),
906 EC_WORD(symstate->ndx), MSG_ORIG(MSG_CMD_ST_SHNDX),
916 EC_WORD(symstate->ndx),
918 symstate->xshndx.data[symstate->ndx]),
921 symstate->xshndx.data[symstate->ndx] = xshndx;
928 EC_WORD(symstate->ndx),
942 Sym *sym = &symstate->sym.data[symstate->ndx];
958 EC_WORD(symstate->ndx), MSG_ORIG(MSG_CMD_ST_TYPE),
964 EC_WORD(symstate->ndx), MSG_ORIG(MSG_CMD_ST_TYPE),
981 Sym *sym = &symstate->sym.data[symstate->ndx];
997 EC_WORD(symstate->ndx), MSG_ORIG(MSG_CMD_ST_VISIBILITY),
1003 EC_WORD(symstate->ndx), MSG_ORIG(MSG_CMD_ST_VISIBILITY),
1166 symstate->ndx = elfedit_atoui_range(
1195 err_type, &symstate->ndx) == 0) {
1231 Sym *sym = &symstate->sym.data[symstate->ndx];
1234 if (symstate->ndx == 0)
1237 symstate->sym.sec->sec_name, EC_WORD(symstate->ndx));
1261 EC_WORD(symstate->ndx),
1269 EC_WORD(symstate->ndx),
1293 EC_WORD(symstate->ndx),
1301 EC_WORD(symstate->ndx),
1323 EC_WORD(symstate->ndx),
1331 EC_WORD(symstate->ndx),
1353 EC_WORD(symstate->ndx),
1361 EC_WORD(symstate->ndx),
1546 Word ndx;
1560 for (ndx = 0; ndx < num_opt; ndx++) {
1561 if (strcmp(argv[ndx], MSG_ORIG(MSG_STR_MINUS_SECSHNDX)) == 0)
1563 else if (strcmp(argv[ndx],
1573 for (ndx = 0; ndx < obj_state->os_shnum; ndx++, sec++)