Lines Matching refs:shndx
259 elfedit_shndx_to_name(elfedit_obj_state_t *obj_state, Word shndx)
275 if ((shndx < obj_state->os_shnum) &&
276 ((shndx < SHN_LORESERVE) || (shndx > SHN_HIRESERVE)) &&
277 (shndx != SHN_UNDEF))
278 return (obj_state->os_secarr[shndx].sec_name);
286 obj_state->os_ehdr->e_machine, shndx,
292 * Locate the arbitrary section specified by shndx for this object.
298 elfedit_sec_get(elfedit_obj_state_t *obj_state, Word shndx)
302 if ((shndx == 0) || (shndx >= obj_state->os_shnum))
304 EC_WORD(shndx), EC_WORD(obj_state->os_shnum - 1));
306 sec = &obj_state->os_secarr[shndx];
309 EC_WORD(shndx), sec->sec_name);
743 * Locate the string table specified by shndx for this object.
747 * shndx - Section index for string table section
764 elfedit_sec_getstr(elfedit_obj_state_t *obj_state, Word shndx,
769 if ((shndx == 0) || (shndx >= obj_state->os_shnum))
771 EC_WORD(shndx), EC_WORD(obj_state->os_shnum - 1));
773 strsec = &obj_state->os_secarr[shndx];
776 EC_WORD(shndx), strsec->sec_name);
782 EC_WORD(shndx), strsec->sec_name);
785 EC_WORD(shndx), strsec->sec_name);