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