Lines Matching defs:strsec

190  *	strsec = String section
212 elfedit_name_to_symndx(elfedit_section_t *symsec, elfedit_section_t *strsec,
224 curname = elfedit_offset_to_str(strsec, offset,
767 elfedit_section_t *strsec;
773 strsec = &obj_state->os_secarr[shndx];
774 if (strsec->sec_shdr->sh_type == SHT_STRTAB) {
776 EC_WORD(shndx), strsec->sec_name);
778 ((strsec->sec_shdr->sh_flags & SHF_STRINGS) != 0) &&
779 (strsec->sec_shdr->sh_entsize <= 1) &&
780 (strsec->sec_shdr->sh_addralign <= 1)) {
782 EC_WORD(shndx), strsec->sec_name);
785 EC_WORD(shndx), strsec->sec_name);
788 return (strsec);
900 * strsec - Descriptor for string table assocated with dynamic section
914 elfedit_dynstr_insert(elfedit_section_t *dynsec, elfedit_section_t *strsec,
926 if (elfedit_sec_findstr(strsec, tail_ign, str, &len))
936 EC_WORD(strsec->sec_shdr->sh_link),
937 strsec->sec_name);
945 ins_off = strsec->sec_shdr->sh_size - tail_ign;
946 s = ((char *)strsec->sec_data->d_buf) + ins_off;
950 EC_WORD(strsec->sec_shndx), strsec->sec_name,
960 elfedit_modified_data(strsec);
977 * strsec - Descriptor for string table
993 elfedit_section_t *strsec, elfedit_section_t *dynsec, const char *str)
1011 (strsec->sec_shndx == dynsec->sec_shdr->sh_link)) {
1020 if (strsec->sec_shndx == dynsec->sec_shdr->sh_link)
1038 if (elfedit_sec_findstr(strsec, tail_ign, str, &len) != 0)
1050 EC_WORD(strsec->sec_shdr->sh_link), strsec->sec_name);
1060 * strsec - Descriptor for string table
1078 elfedit_strtab_insert(elfedit_obj_state_t *obj_state, elfedit_section_t *strsec,
1097 (strsec->sec_shndx == dynsec->sec_shdr->sh_link)) {
1106 if (strsec->sec_shndx == dynsec->sec_shdr->sh_link)
1113 return (elfedit_dynstr_insert(dynsec, strsec,
1121 if (elfedit_sec_findstr(strsec, 0, str, &len))
1126 EC_WORD(strsec->sec_shdr->sh_link), strsec->sec_name);
1138 * strsec - Section descriptor for string table section
1151 elfedit_offset_to_str(elfedit_section_t *strsec, Word offset,
1157 if (strsec->sec_shdr->sh_type != SHT_STRTAB)
1159 EC_WORD(strsec->sec_shndx), strsec->sec_name);
1162 if (offset >= strsec->sec_data->d_size) {
1164 EC_WORD(strsec->sec_shndx), strsec->sec_name,
1165 EC_WORD(offset), EC_WORD(strsec->sec_data->d_size - 1));
1173 str = ((const char *)strsec->sec_data->d_buf) + offset;
1178 EC_WORD(strsec->sec_shndx), strsec->sec_name,
1194 elfedit_dyn_offset_to_str(elfedit_section_t *strsec, elfedit_dyn_elt_t *dynelt)
1196 return (elfedit_offset_to_str(strsec, dynelt->dn_dyn.d_un.d_val,