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
534 unsigned int shindex = symtab_hdr->sh_link;
541 shindex = elf_elfheader (abfd)->e_shstrndx;
544 return bfd_elf_string_from_elf_section (abfd, shindex, iname);
799 int shindex)
815 elf_section_data (newsect)->this_idx = shindex;
2411 bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
2419 if (shindex >= elf_numsections (abfd))
2425 if (elf_tdata (abfd)->being_created[shindex])
2431 elf_tdata (abfd)->being_created[shindex] = true;
2433 hdr = elf_elfsections (abfd)[shindex];
2456 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2460 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2512 if (elf_onesymtab (abfd) == shindex)
2537 abfd, shindex);
2540 elf_onesymtab (abfd) = shindex;
2542 elf_elfsections (abfd)[shindex] = hdr = & elf_symtab_hdr (abfd);
2554 shindex))
2565 if (entry->hdr.sh_link == shindex)
2569 for (i = shindex + 1; i < num_sec; i++)
2574 && hdr2->sh_link == shindex)
2579 for (i = 1; i < shindex; i++)
2584 && hdr2->sh_link == shindex)
2588 if (i != shindex)
2596 if (elf_dynsymtab (abfd) == shindex)
2622 abfd, shindex);
2625 elf_dynsymtab (abfd) = shindex;
2627 elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->dynsymtab_hdr;
2632 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2640 if (entry->ndx == shindex)
2646 entry->ndx = shindex;
2650 elf_elfsections (abfd)[shindex] = & entry->hdr;
2658 if (ehdr->e_shstrndx == shindex)
2661 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->shstrtab_hdr;
2665 if (elf_elfsections (abfd)[elf_onesymtab (abfd)]->sh_link == shindex)
2669 elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->strtab_hdr;
2673 if (elf_elfsections (abfd)[elf_dynsymtab (abfd)]->sh_link == shindex)
2678 elf_elfsections (abfd)[shindex] = hdr;
2682 shindex);
2697 if (hdr2->sh_link == shindex)
2700 if (i == shindex)
2711 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2740 abfd, hdr->sh_link, name, shindex);
2741 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2770 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2792 if (!bed->init_secondary_reloc_section (abfd, hdr, name, shindex))
2810 elf_elfsections (abfd)[shindex] = hdr2;
2829 elf_dynverdef (abfd) = shindex;
2831 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2838 elf_dynversym (abfd) = shindex;
2840 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2845 elf_dynverref (abfd) = shindex;
2847 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2854 if (!_bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2864 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
2871 if (bed->elf_backend_section_from_shdr (abfd, hdr, name, shindex))
2886 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2911 ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
2928 elf_tdata (abfd)->being_created[shindex] = false;
13733 unsigned int shindex)
13743 return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);