Home | History | Annotate | Download | only in bfd

Lines Matching defs: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;
311 i_shdrp[shindex]->sh_size = 0;
315 i_shdrp[shindex]->contents = shstrtab;
322 unsigned int shindex,
330 if (elf_elfsections (abfd) == NULL || shindex >= elf_numsections (abfd))
333 hdr = elf_elfsections (abfd)[shindex];
336 && bfd_elf_get_str_section (abfd, shindex) == NULL)
345 (shindex == shstrndx && strindex == hdr->sh_name
482 unsigned int shindex = symtab_hdr->sh_link;
489 shindex = elf_elfheader (abfd)->e_shstrndx;
492 name = bfd_elf_string_from_elf_section (abfd, shindex, iname);
853 int shindex)
868 elf_section_data (newsect)->this_idx = shindex;
1577 bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
1588 if (shindex >= elf_numsections (abfd))
1612 if (sections_being_created [shindex])
1618 sections_being_created [shindex] = TRUE;
1621 hdr = elf_elfsections (abfd)[shindex];
1644 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
1648 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
1700 if (elf_onesymtab (abfd) == shindex)
1718 elf_onesymtab (abfd) = shindex;
1720 elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->symtab_hdr;
1732 shindex))
1738 if (elf_elfsections (abfd)[elf_symtab_shndx (abfd)]->sh_link != shindex)
1743 for (i = shindex + 1; i < num_sec; i++)
1747 && hdr2->sh_link == shindex)
1751 for (i = 1; i < shindex; i++)
1755 && hdr2->sh_link == shindex)
1758 if (i != shindex)
1764 if (elf_dynsymtab (abfd) == shindex)
1783 elf_dynsymtab (abfd) = shindex;
1785 elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->dynsymtab_hdr;
1790 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
1794 if (elf_symtab_shndx (abfd) == shindex)
1798 elf_symtab_shndx (abfd) = shindex;
1800 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->symtab_shndx_hdr;
1807 if (ehdr->e_shstrndx == shindex)
1810 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->shstrtab_hdr;
1814 if (elf_elfsections (abfd)[elf_onesymtab (abfd)]->sh_link == shindex)
1818 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->strtab_hdr;
1822 if (elf_elfsections (abfd)[elf_dynsymtab (abfd)]->sh_link == shindex)
1827 elf_elfsections (abfd)[shindex] = hdr;
1831 shindex);
1846 if (hdr2->sh_link == shindex)
1849 if (i == shindex)
1860 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
1883 abfd, hdr->sh_link, name, shindex));
1885 shindex);
1944 shindex);
1968 elf_elfsections (abfd)[shindex] = hdr2;
1985 elf_dynverdef (abfd) = shindex;
1987 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
1994 elf_dynversym (abfd) = shindex;
1996 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2000 elf_dynverref (abfd) = shindex;
2002 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2012 if (!_bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2047 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2054 if (bed->elf_backend_section_from_shdr (abfd, hdr, name, shindex))
2070 shindex);
2095 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2112 sections_being_created [shindex] = FALSE;