Home | History | Annotate | Download | only in bfd

Lines Matching defs:shindex

265 bfd_elf_get_str_section (bfd *abfd, unsigned int shindex)
274 || shindex >= elf_numsections (abfd)
275 || i_shdrp[shindex] == 0)
278 shstrtab = i_shdrp[shindex]->contents;
282 offset = i_shdrp[shindex]->sh_offset;
283 shstrtabsize = i_shdrp[shindex]->sh_size;
292 i_shdrp[shindex]->sh_size = 0;
299 (_("%pB: string table [%u] is corrupt"), abfd, shindex);
302 i_shdrp[shindex]->contents = shstrtab;
309 unsigned int shindex,
317 if (elf_elfsections (abfd) == NULL || shindex >= elf_numsections (abfd))
320 hdr = elf_elfsections (abfd)[shindex];
330 abfd, shindex);
334 if (bfd_elf_get_str_section (abfd, shindex) == NULL)
355 (shindex == shstrndx && strindex == hdr->sh_name
561 unsigned int shindex = symtab_hdr->sh_link;
568 shindex = elf_elfheader (abfd)->e_shstrndx;
571 return bfd_elf_string_from_elf_section (abfd, shindex, iname);
826 int shindex)
842 elf_section_data (newsect)->this_idx = shindex;
2436 bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
2444 if (shindex >= elf_numsections (abfd))
2450 if (elf_tdata (abfd)->being_created[shindex])
2456 elf_tdata (abfd)->being_created[shindex] = true;
2458 hdr = elf_elfsections (abfd)[shindex];
2482 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2486 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2538 if (elf_onesymtab (abfd) == shindex)
2563 abfd, shindex);
2566 elf_onesymtab (abfd) = shindex;
2568 elf_elfsections (abfd)[shindex] = hdr = & elf_symtab_hdr (abfd);
2580 shindex))
2591 if (entry->hdr.sh_link == shindex)
2595 for (i = shindex + 1; i < num_sec; i++)
2600 && hdr2->sh_link == shindex)
2605 for (i = 1; i < shindex; i++)
2610 && hdr2->sh_link == shindex)
2614 if (i != shindex)
2622 if (elf_dynsymtab (abfd) == shindex)
2648 abfd, shindex);
2651 elf_dynsymtab (abfd) = shindex;
2653 elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->dynsymtab_hdr;
2658 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2666 if (entry->ndx == shindex)
2672 entry->ndx = shindex;
2676 elf_elfsections (abfd)[shindex] = & entry->hdr;
2684 if (ehdr->e_shstrndx == shindex)
2687 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->shstrtab_hdr;
2691 if (elf_elfsections (abfd)[elf_onesymtab (abfd)]->sh_link == shindex)
2695 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->strtab_hdr;
2699 if (elf_elfsections (abfd)[elf_dynsymtab (abfd)]->sh_link == shindex)
2704 elf_elfsections (abfd)[shindex] = hdr;
2708 shindex);
2723 if (hdr2->sh_link == shindex)
2726 if (i == shindex)
2737 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2766 abfd, hdr->sh_link, name, shindex);
2767 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2796 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2818 if (!bed->init_secondary_reloc_section (abfd, hdr, name, shindex))
2836 elf_elfsections (abfd)[shindex] = hdr2;
2855 elf_dynverdef (abfd) = shindex;
2857 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2864 elf_dynversym (abfd) = shindex;
2866 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2871 elf_dynverref (abfd) = shindex;
2873 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2880 if (!_bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2892 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2899 if (bed->elf_backend_section_from_shdr (abfd, hdr, name, shindex))
2914 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2939 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2956 elf_tdata (abfd)->being_created[shindex] = false;
13826 unsigned int shindex)
13836 return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);