Lines Matching defs:sec

152 		elfedit_section_t	*sec;
157 elfedit_section_t *sec;
161 elfedit_section_t *sec;
167 elfedit_section_t *sec;
206 if (symstate->str.sec != NULL)
209 symstate->str.sec = elfedit_sec_getstr(argstate->obj_state,
210 symstate->sym.sec->sec_shdr->sh_link, 0);
215 if (symstate->versym.sec != NULL)
218 symstate->versym.sec = elfedit_sec_getversym(argstate->obj_state,
219 symstate->sym.sec, &symstate->versym.data, &symstate->versym.n);
224 if (symstate->xshndx.sec != NULL)
227 symstate->xshndx.sec = elfedit_sec_getxshndx(argstate->obj_state,
228 symstate->sym.sec, &symstate->xshndx.data, &symstate->xshndx.n);
257 symsec = symstate->sym.sec;
261 strsec = symstate->str.sec;
276 versym = (symstate->versym.sec == NULL) ? 0 :
281 if ((shndx == SHN_XINDEX) && (symstate->xshndx.sec != NULL))
340 n1 = elfedit_offset_to_str(symstate1->str.sec,
342 n2 = elfedit_offset_to_str(symstate2->str.sec,
477 elfedit_offset_to_str(symstate->str.sec,
501 (symstate->xshndx.sec != NULL))
703 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name,
713 gbl_ndx = symstate->sym.sec->sec_shdr->sh_info;
714 symndx = symstate->sym.sec->sec_shndx;
718 EC_WORD(symndx), symstate->sym.sec->sec_name,
723 EC_WORD(symndx), symstate->sym.sec->sec_name,
727 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name,
755 (void) elfedit_offset_to_str(symstate->str.sec,
759 symstate->str.sec, NULL, argstate->argv[1]);
764 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name,
772 if (symstate->sym.sec->sec_shdr->sh_type == SHT_DYNSYM)
775 EC_WORD(symstate->sym.sec->sec_shndx),
776 symstate->sym.sec->sec_name,
780 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name,
802 * By default, the sec argument is a section name. If -secshndx was
843 /* Set symbol to SHN_XINDEX, put index in the extended sec. */
889 EC_WORD(symstate->sym.sec->sec_shndx),
890 symstate->sym.sec->sec_name, EC_WORD(symstate->ndx),
896 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name,
905 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name,
914 symstate->xshndx.sec->sec_shndx,
915 symstate->xshndx.sec->sec_name,
922 elfedit_modified_data(symstate->xshndx.sec);
926 symstate->xshndx.sec->sec_shndx,
927 symstate->xshndx.sec->sec_name,
957 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name,
963 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name,
996 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name,
1002 symstate->sym.sec->sec_shndx, symstate->sym.sec->sec_name,
1159 symstate->sym.sec = elfedit_sec_getsymtab(obj_state, 1,
1193 if (elfedit_name_to_symndx(symstate->sym.sec,
1194 symstate->str.sec, argstate->argv[0],
1236 EC_WORD(symstate->sym.sec->sec_shndx),
1237 symstate->sym.sec->sec_name, EC_WORD(symstate->ndx));
1259 symstate->sym.sec->sec_shndx,
1260 symstate->sym.sec->sec_name,
1267 symstate->sym.sec->sec_shndx,
1268 symstate->sym.sec->sec_name,
1291 symstate->sym.sec->sec_shndx,
1292 symstate->sym.sec->sec_name,
1299 symstate->sym.sec->sec_shndx,
1300 symstate->sym.sec->sec_name,
1321 symstate->sym.sec->sec_shndx,
1322 symstate->sym.sec->sec_name,
1329 symstate->sym.sec->sec_shndx,
1330 symstate->sym.sec->sec_name,
1351 symstate->sym.sec->sec_shndx,
1352 symstate->sym.sec->sec_name,
1359 symstate->sym.sec->sec_shndx,
1360 symstate->sym.sec->sec_name,
1384 elfedit_modified_data(symstate->sym.sec);
1439 elfedit_strtab_insert_test(obj_state, symstate->str.sec,
1503 elfedit_section_t *sec =
1508 elfedit_cpl_match(cpldata, sec->sec_name, 0);
1518 sec, 1, &cpl_list);
1544 elfedit_section_t *sec;
1572 sec = obj_state->os_secarr;
1573 for (ndx = 0; ndx < obj_state->os_shnum; ndx++, sec++)
1574 elfedit_cpl_match(cpldata, sec->sec_name, 0);