Lines Matching refs:shindex

277 bfd_elf_get_str_section (bfd *abfd, unsigned int shindex)  in bfd_elf_get_str_section()  argument
286 || shindex >= elf_numsections (abfd) in bfd_elf_get_str_section()
287 || i_shdrp[shindex] == 0) in bfd_elf_get_str_section()
290 shstrtab = i_shdrp[shindex]->contents; in bfd_elf_get_str_section()
294 offset = i_shdrp[shindex]->sh_offset; in bfd_elf_get_str_section()
295 shstrtabsize = i_shdrp[shindex]->sh_size; in bfd_elf_get_str_section()
311 i_shdrp[shindex]->sh_size = 0; in bfd_elf_get_str_section()
315 i_shdrp[shindex]->contents = shstrtab; in bfd_elf_get_str_section()
322 unsigned int shindex, in bfd_elf_string_from_elf_section() argument
330 if (elf_elfsections (abfd) == NULL || shindex >= elf_numsections (abfd)) in bfd_elf_string_from_elf_section()
333 hdr = elf_elfsections (abfd)[shindex]; in bfd_elf_string_from_elf_section()
336 && bfd_elf_get_str_section (abfd, shindex) == NULL) in bfd_elf_string_from_elf_section()
345 (shindex == shstrndx && strindex == hdr->sh_name in bfd_elf_string_from_elf_section()
482 unsigned int shindex = symtab_hdr->sh_link; in bfd_elf_sym_name() local
489 shindex = elf_elfheader (abfd)->e_shstrndx; in bfd_elf_sym_name()
492 name = bfd_elf_string_from_elf_section (abfd, shindex, iname); in bfd_elf_sym_name()
853 int shindex) in _bfd_elf_make_section_from_shdr() argument
868 elf_section_data (newsect)->this_idx = shindex; in _bfd_elf_make_section_from_shdr()
1575 bfd_section_from_shdr (bfd *abfd, unsigned int shindex) in bfd_section_from_shdr() argument
1586 if (shindex >= elf_numsections (abfd)) in bfd_section_from_shdr()
1610 if (sections_being_created [shindex]) in bfd_section_from_shdr()
1616 sections_being_created [shindex] = TRUE; in bfd_section_from_shdr()
1619 hdr = elf_elfsections (abfd)[shindex]; in bfd_section_from_shdr()
1642 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex); in bfd_section_from_shdr()
1646 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex)) in bfd_section_from_shdr()
1698 if (elf_onesymtab (abfd) == shindex) in bfd_section_from_shdr()
1716 elf_onesymtab (abfd) = shindex; in bfd_section_from_shdr()
1718 elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->symtab_hdr; in bfd_section_from_shdr()
1730 shindex)) in bfd_section_from_shdr()
1736 if (elf_elfsections (abfd)[elf_symtab_shndx (abfd)]->sh_link != shindex) in bfd_section_from_shdr()
1741 for (i = shindex + 1; i < num_sec; i++) in bfd_section_from_shdr()
1745 && hdr2->sh_link == shindex) in bfd_section_from_shdr()
1749 for (i = 1; i < shindex; i++) in bfd_section_from_shdr()
1753 && hdr2->sh_link == shindex) in bfd_section_from_shdr()
1756 if (i != shindex) in bfd_section_from_shdr()
1762 if (elf_dynsymtab (abfd) == shindex) in bfd_section_from_shdr()
1781 elf_dynsymtab (abfd) = shindex; in bfd_section_from_shdr()
1783 elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->dynsymtab_hdr; in bfd_section_from_shdr()
1788 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex); in bfd_section_from_shdr()
1792 if (elf_symtab_shndx (abfd) == shindex) in bfd_section_from_shdr()
1796 elf_symtab_shndx (abfd) = shindex; in bfd_section_from_shdr()
1798 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->symtab_shndx_hdr; in bfd_section_from_shdr()
1805 if (ehdr->e_shstrndx == shindex) in bfd_section_from_shdr()
1808 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->shstrtab_hdr; in bfd_section_from_shdr()
1812 if (elf_elfsections (abfd)[elf_onesymtab (abfd)]->sh_link == shindex) in bfd_section_from_shdr()
1816 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->strtab_hdr; in bfd_section_from_shdr()
1820 if (elf_elfsections (abfd)[elf_dynsymtab (abfd)]->sh_link == shindex) in bfd_section_from_shdr()
1825 elf_elfsections (abfd)[shindex] = hdr; in bfd_section_from_shdr()
1829 shindex); in bfd_section_from_shdr()
1844 if (hdr2->sh_link == shindex) in bfd_section_from_shdr()
1847 if (i == shindex) in bfd_section_from_shdr()
1858 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex); in bfd_section_from_shdr()
1881 abfd, hdr->sh_link, name, shindex)); in bfd_section_from_shdr()
1883 shindex); in bfd_section_from_shdr()
1942 shindex); in bfd_section_from_shdr()
1966 elf_elfsections (abfd)[shindex] = hdr2; in bfd_section_from_shdr()
1983 elf_dynverdef (abfd) = shindex; in bfd_section_from_shdr()
1985 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex); in bfd_section_from_shdr()
1992 elf_dynversym (abfd) = shindex; in bfd_section_from_shdr()
1994 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex); in bfd_section_from_shdr()
1998 elf_dynverref (abfd) = shindex; in bfd_section_from_shdr()
2000 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex); in bfd_section_from_shdr()
2010 if (!_bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex)) in bfd_section_from_shdr()
2045 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex)) in bfd_section_from_shdr()
2052 if (bed->elf_backend_section_from_shdr (abfd, hdr, name, shindex)) in bfd_section_from_shdr()
2068 shindex); in bfd_section_from_shdr()
2093 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex); in bfd_section_from_shdr()
2110 sections_being_created [shindex] = FALSE; in bfd_section_from_shdr()