Lines Matching refs:shndx
93 int tfd, *shndx, ndx = 1, off = 0; in delete_comment() local
124 shndx = calloc(shnum, sizeof (int)); in delete_comment()
137 free(shndx); in delete_comment()
142 shndx[ndx] = -1; in delete_comment()
154 free(shndx); in delete_comment()
158 shndx[ndx] = ndx - off; in delete_comment()
184 free(shndx); in delete_comment()
190 free(shndx); in delete_comment()
201 if (shndx[ndx] == -1) { in delete_comment()
213 free(shndx); in delete_comment()
219 free(shndx); in delete_comment()
225 free(shndx); in delete_comment()
229 tshdr.sh_link = shndx[shdr.sh_link]; in delete_comment()
242 tshdr.sh_info = shndx[ndx]; in delete_comment()
253 free(shndx); in delete_comment()
259 free(shndx); in delete_comment()
267 if (shndx[shstrndx] < SHN_LORESERVE) in delete_comment()
268 tehdr.e_shstrndx = shndx[shstrndx]; in delete_comment()
280 free(shndx); in delete_comment()
286 free(shndx); in delete_comment()
290 shdr0.sh_link = shndx[shstrndx]; in delete_comment()
295 free(shndx); in delete_comment()