Home | History | Annotate | Download | only in bfd

Lines Matching full:shindex

277 bfd_elf_get_str_section (bfd *abfd, unsigned int shindex)
286 || shindex >= elf_numsections (abfd)
287 || i_shdrp[shindex] == 0)
290 shstrtab = i_shdrp[shindex]->contents;
294 offset = i_shdrp[shindex]->sh_offset;
295 shstrtabsize = i_shdrp[shindex]->sh_size;
312 i_shdrp[shindex]->sh_size = 0;
316 i_shdrp[shindex]->contents = shstrtab;
323 unsigned int shindex,
331 if (elf_elfsections (abfd) == NULL || shindex >= elf_numsections (abfd))
334 hdr = elf_elfsections (abfd)[shindex];
342 abfd, shindex);
346 if (bfd_elf_get_str_section (abfd, shindex) == NULL)
356 (shindex == shstrndx && strindex == hdr->sh_name
519 unsigned int shindex = symtab_hdr->sh_link;
526 shindex = elf_elfheader (abfd)->e_shstrndx;
529 name = bfd_elf_string_from_elf_section (abfd, shindex, iname);
929 int shindex)
944 elf_section_data (newsect)->this_idx = shindex;
1908 bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
1919 if (shindex >= elf_numsections (abfd))
1943 if (sections_being_created [shindex])
1949 sections_being_created [shindex] = TRUE;
1952 hdr = elf_elfsections (abfd)[shindex];
1975 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
1979 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2031 if (elf_onesymtab (abfd) == shindex)
2054 abfd, shindex);
2057 elf_onesymtab (abfd) = shindex;
2059 elf_elfsections (abfd)[shindex] = hdr = & elf_symtab_hdr (abfd);
2071 shindex))
2082 if (entry->hdr.sh_link == shindex)
2086 for (i = shindex + 1; i < num_sec; i++)
2091 && hdr2->sh_link == shindex)
2096 for (i = 1; i < shindex; i++)
2101 && hdr2->sh_link == shindex)
2105 if (i != shindex)
2112 if (elf_dynsymtab (abfd) == shindex)
2136 abfd, shindex);
2139 elf_dynsymtab (abfd) = shindex;
2141 elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->dynsymtab_hdr;
2146 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2154 if (entry->ndx == shindex)
2160 entry->ndx = shindex;
2164 elf_elfsections (abfd)[shindex] = & entry->hdr;
2172 if (ehdr->e_shstrndx == shindex)
2175 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->shstrtab_hdr;
2179 if (elf_elfsections (abfd)[elf_onesymtab (abfd)]->sh_link == shindex)
2183 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->strtab_hdr;
2187 if (elf_elfsections (abfd)[elf_dynsymtab (abfd)]->sh_link == shindex)
2192 elf_elfsections (abfd)[shindex] = hdr;
2196 shindex);
2211 if (hdr2->sh_link == shindex)
2214 if (i == shindex)
2225 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2261 abfd, hdr->sh_link, name, shindex));
2263 shindex);
2323 shindex);
2348 elf_elfsections (abfd)[shindex] = hdr2;
2365 elf_dynverdef (abfd) = shindex;
2367 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2374 elf_dynversym (abfd) = shindex;
2376 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2380 elf_dynverref (abfd) = shindex;
2382 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2392 if (!_bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2430 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2437 if (bed->elf_backend_section_from_shdr (abfd, hdr, name, shindex))
2453 shindex);
2478 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2495 sections_being_created [shindex] = FALSE;