Lines Matching refs:sec

152 		elfedit_section_t	*sec;  member
157 elfedit_section_t *sec; member
161 elfedit_section_t *sec; member
167 elfedit_section_t *sec; member
206 if (symstate->str.sec != NULL) in symstate_add_str()
209 symstate->str.sec = elfedit_sec_getstr(argstate->obj_state, in symstate_add_str()
210 symstate->sym.sec->sec_shdr->sh_link, 0); in symstate_add_str()
215 if (symstate->versym.sec != NULL) in symstate_add_versym()
218 symstate->versym.sec = elfedit_sec_getversym(argstate->obj_state, in symstate_add_versym()
219 symstate->sym.sec, &symstate->versym.data, &symstate->versym.n); in symstate_add_versym()
224 if (symstate->xshndx.sec != NULL) in symstate_add_xshndx()
227 symstate->xshndx.sec = elfedit_sec_getxshndx(argstate->obj_state, in symstate_add_xshndx()
228 symstate->sym.sec, &symstate->xshndx.data, &symstate->xshndx.n); in symstate_add_xshndx()
257 symsec = symstate->sym.sec; in dump_symtab()
261 strsec = symstate->str.sec; in dump_symtab()
276 versym = (symstate->versym.sec == NULL) ? 0 : in dump_symtab()
281 if ((shndx == SHN_XINDEX) && (symstate->xshndx.sec != NULL)) in dump_symtab()
340 n1 = elfedit_offset_to_str(symstate1->str.sec, in all_same()
342 n2 = elfedit_offset_to_str(symstate2->str.sec, in all_same()
477 elfedit_offset_to_str(symstate->str.sec, in print_symstate()
501 (symstate->xshndx.sec != NULL)) in print_symstate()
703 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name, in cmd_body_set_st_bind()
713 gbl_ndx = symstate->sym.sec->sec_shdr->sh_info; in cmd_body_set_st_bind()
714 symndx = symstate->sym.sec->sec_shndx; in cmd_body_set_st_bind()
718 EC_WORD(symndx), symstate->sym.sec->sec_name, in cmd_body_set_st_bind()
723 EC_WORD(symndx), symstate->sym.sec->sec_name, in cmd_body_set_st_bind()
727 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name, in cmd_body_set_st_bind()
755 (void) elfedit_offset_to_str(symstate->str.sec, in cmd_body_set_st_name()
759 symstate->str.sec, NULL, argstate->argv[1]); in cmd_body_set_st_name()
764 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name, in cmd_body_set_st_name()
772 if (symstate->sym.sec->sec_shdr->sh_type == SHT_DYNSYM) in cmd_body_set_st_name()
775 EC_WORD(symstate->sym.sec->sec_shndx), in cmd_body_set_st_name()
776 symstate->sym.sec->sec_name, in cmd_body_set_st_name()
780 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name, in cmd_body_set_st_name()
889 EC_WORD(symstate->sym.sec->sec_shndx), in cmd_body_set_st_shndx()
890 symstate->sym.sec->sec_name, EC_WORD(symstate->ndx), in cmd_body_set_st_shndx()
896 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name, in cmd_body_set_st_shndx()
905 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name, in cmd_body_set_st_shndx()
914 symstate->xshndx.sec->sec_shndx, in cmd_body_set_st_shndx()
915 symstate->xshndx.sec->sec_name, in cmd_body_set_st_shndx()
922 elfedit_modified_data(symstate->xshndx.sec); in cmd_body_set_st_shndx()
926 symstate->xshndx.sec->sec_shndx, in cmd_body_set_st_shndx()
927 symstate->xshndx.sec->sec_name, in cmd_body_set_st_shndx()
957 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name, in cmd_body_set_st_type()
963 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name, in cmd_body_set_st_type()
996 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name, in cmd_body_set_st_visibility()
1002 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name, in cmd_body_set_st_visibility()
1159 symstate->sym.sec = elfedit_sec_getsymtab(obj_state, 1, in process_args()
1193 if (elfedit_name_to_symndx(symstate->sym.sec, in process_args()
1194 symstate->str.sec, argstate->argv[0], in process_args()
1236 EC_WORD(symstate->sym.sec->sec_shndx), in symstate_cmd_body()
1237 symstate->sym.sec->sec_name, EC_WORD(symstate->ndx)); in symstate_cmd_body()
1259 symstate->sym.sec->sec_shndx, in symstate_cmd_body()
1260 symstate->sym.sec->sec_name, in symstate_cmd_body()
1267 symstate->sym.sec->sec_shndx, in symstate_cmd_body()
1268 symstate->sym.sec->sec_name, in symstate_cmd_body()
1291 symstate->sym.sec->sec_shndx, in symstate_cmd_body()
1292 symstate->sym.sec->sec_name, in symstate_cmd_body()
1299 symstate->sym.sec->sec_shndx, in symstate_cmd_body()
1300 symstate->sym.sec->sec_name, in symstate_cmd_body()
1321 symstate->sym.sec->sec_shndx, in symstate_cmd_body()
1322 symstate->sym.sec->sec_name, in symstate_cmd_body()
1329 symstate->sym.sec->sec_shndx, in symstate_cmd_body()
1330 symstate->sym.sec->sec_name, in symstate_cmd_body()
1351 symstate->sym.sec->sec_shndx, in symstate_cmd_body()
1352 symstate->sym.sec->sec_name, in symstate_cmd_body()
1359 symstate->sym.sec->sec_shndx, in symstate_cmd_body()
1360 symstate->sym.sec->sec_name, in symstate_cmd_body()
1384 elfedit_modified_data(symstate->sym.sec); in symstate_cmd_body()
1439 elfedit_strtab_insert_test(obj_state, symstate->str.sec, in cmd_body()
1503 elfedit_section_t *sec = in cpl_sh_opt() local
1508 elfedit_cpl_match(cpldata, sec->sec_name, 0); in cpl_sh_opt()
1518 sec, 1, &cpl_list); in cpl_sh_opt()
1544 elfedit_section_t *sec; in cpl_st_shndx() local
1572 sec = obj_state->os_secarr; in cpl_st_shndx()
1573 for (ndx = 0; ndx < obj_state->os_shnum; ndx++, sec++) in cpl_st_shndx()
1574 elfedit_cpl_match(cpldata, sec->sec_name, 0); in cpl_st_shndx()