Lines Matching refs:ndx

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