Home | History | Annotate | Download | only in bfd

Lines Matching defs:i_shdrp

527   Elf_Internal_Shdr *i_shdrp;	/* Section header table, internal form */
710 if (_bfd_mul_overflow (i_ehdrp->e_shnum, sizeof (*i_shdrp), &amt))
712 i_shdrp = (Elf_Internal_Shdr *) bfd_alloc (abfd, amt);
713 if (!i_shdrp)
717 if (_bfd_mul_overflow (num_sec, sizeof (i_shdrp), &amt))
726 memcpy (i_shdrp, &i_shdr, sizeof (*i_shdrp));
727 for (shdrp = i_shdrp, shindex = 0; shindex < num_sec; shindex++)
735 || !elf_swap_shdr_in (abfd, &x_shdr, i_shdrp + shindex))
739 if (i_shdrp[shindex].sh_link >= num_sec)
752 if (i_shdrp[shindex].sh_link == (SHN_LORESERVE & 0xffff) /* SHN_BEFORE */
753 || i_shdrp[shindex].sh_link == ((SHN_LORESERVE + 1) & 0xffff) /* SHN_AFTER */)
761 if (((i_shdrp[shindex].sh_flags & SHF_INFO_LINK)
762 || i_shdrp[shindex].sh_type == SHT_RELA
763 || i_shdrp[shindex].sh_type == SHT_REL)
764 && i_shdrp[shindex].sh_info >= num_sec)
769 if (i_shdrp[shindex].sh_size != 0
770 && (i_shdrp[shindex].sh_flags & SHF_ALLOC) != 0
771 && i_shdrp[shindex].sh_type != SHT_NOBITS
772 && (((i_shdrp[shindex].sh_addr - i_shdrp[shindex].sh_offset)
779 || i_shdrp[i_ehdrp->e_shstrndx].sh_type != SHT_STRTAB)
1109 Elf_Internal_Shdr **i_shdrp; /* Section header table, internal form */
1114 i_shdrp = elf_elfsections (abfd);
1133 i_shdrp[0]->sh_info = i_ehdrp->e_phnum;
1135 i_shdrp[0]->sh_size = i_ehdrp->e_shnum;
1137 i_shdrp[0]->sh_link = i_ehdrp->e_shstrndx;
1149 for (count = 0; count < i_ehdrp->e_shnum; i_shdrp++, count++)
1152 elf_debug_section (count, *i_shdrp);
1154 elf_swap_shdr_out (abfd, *i_shdrp, x_shdrp + count);
1172 Elf_Internal_Shdr **i_shdrp = elf_elfsections (abfd);
1202 i_shdr = *i_shdrp[count];