Lines Matching defs:shindex
331 bfd_elf_get_str_section (bfd *abfd, unsigned int shindex)
340 || shindex >= elf_numsections (abfd)
341 || i_shdrp[shindex] == 0)
344 shstrtab = i_shdrp[shindex]->contents;
348 offset = i_shdrp[shindex]->sh_offset;
349 shstrtabsize = i_shdrp[shindex]->sh_size;
358 i_shdrp[shindex]->sh_size = 0;
365 (_("%pB: string table [%u] is corrupt"), abfd, shindex);
368 i_shdrp[shindex]->contents = shstrtab;
375 unsigned int shindex,
383 if (elf_elfsections (abfd) == NULL || shindex >= elf_numsections (abfd))
386 hdr = elf_elfsections (abfd)[shindex];
396 abfd, shindex);
400 if (bfd_elf_get_str_section (abfd, shindex) == NULL)
421 (shindex == shstrndx && strindex == hdr->sh_name
627 unsigned int shindex = symtab_hdr->sh_link;
634 shindex = elf_elfheader (abfd)->e_shstrndx;
637 return bfd_elf_string_from_elf_section (abfd, shindex, iname);
892 int shindex)
908 elf_section_data (newsect)->this_idx = shindex;
2498 bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
2506 if (shindex >= elf_numsections (abfd))
2512 if (elf_tdata (abfd)->being_created[shindex])
2518 elf_tdata (abfd)->being_created[shindex] = true;
2520 hdr = elf_elfsections (abfd)[shindex];
2544 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2548 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2600 if (elf_onesymtab (abfd) == shindex)
2625 abfd, shindex);
2628 elf_onesymtab (abfd) = shindex;
2630 elf_elfsections (abfd)[shindex] = hdr = & elf_symtab_hdr (abfd);
2642 shindex))
2653 if (entry->hdr.sh_link == shindex)
2657 for (i = shindex + 1; i < num_sec; i++)
2662 && hdr2->sh_link == shindex)
2667 for (i = 1; i < shindex; i++)
2672 && hdr2->sh_link == shindex)
2676 if (i != shindex)
2684 if (elf_dynsymtab (abfd) == shindex)
2710 abfd, shindex);
2713 elf_dynsymtab (abfd) = shindex;
2715 elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->dynsymtab_hdr;
2720 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2728 if (entry->ndx == shindex)
2734 entry->ndx = shindex;
2738 elf_elfsections (abfd)[shindex] = & entry->hdr;
2746 if (ehdr->e_shstrndx == shindex)
2749 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->shstrtab_hdr;
2753 if (elf_elfsections (abfd)[elf_onesymtab (abfd)]->sh_link == shindex)
2757 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->strtab_hdr;
2761 if (elf_elfsections (abfd)[elf_dynsymtab (abfd)]->sh_link == shindex)
2766 elf_elfsections (abfd)[shindex] = hdr;
2770 shindex);
2785 if (hdr2->sh_link == shindex)
2788 if (i == shindex)
2799 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2828 abfd, hdr->sh_link, name, shindex);
2829 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2858 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2880 if (!bed->init_secondary_reloc_section (abfd, hdr, name, shindex))
2898 elf_elfsections (abfd)[shindex] = hdr2;
2917 elf_dynverdef (abfd) = shindex;
2919 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2926 elf_dynversym (abfd) = shindex;
2928 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2933 elf_dynverref (abfd) = shindex;
2935 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2942 if (!_bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2954 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2961 if (bed->elf_backend_section_from_shdr (abfd, hdr, name, shindex))
2976 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
3001 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
3018 elf_tdata (abfd)->being_created[shindex] = false;
13585 unsigned int shindex)
13595 return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);