Lines Matching refs:i_shdrp
333 Elf_Internal_Shdr **i_shdrp;
338 i_shdrp = elf_elfsections (abfd);
339 if (i_shdrp == 0
341 || i_shdrp[shindex] == 0)
344 shstrtab = i_shdrp[shindex]->contents;
348 offset = i_shdrp[shindex]->sh_offset;
349 shstrtabsize = i_shdrp[shindex]->sh_size;
358 i_shdrp[shindex]->sh_size = 0;
368 i_shdrp[shindex]->contents = shstrtab;
4122 Elf_Internal_Shdr **i_shdrp;
4236 i_shdrp = (Elf_Internal_Shdr **) bfd_zalloc (abfd, amt);
4237 if (i_shdrp == NULL)
4240 i_shdrp[0] = (Elf_Internal_Shdr *) bfd_zalloc (abfd,
4242 if (i_shdrp[0] == NULL)
4244 bfd_release (abfd, i_shdrp);
4248 elf_elfsections (abfd) = i_shdrp;
4250 i_shdrp[elf_shstrtab_sec (abfd)] = &t->shstrtab_hdr;
4253 i_shdrp[elf_onesymtab (abfd)] = &t->symtab_hdr;
4258 i_shdrp[entry->ndx] = & entry->hdr;
4261 i_shdrp[elf_strtab_sec (abfd)] = &t->strtab_hdr;
4271 i_shdrp[d->this_idx] = &d->this_hdr;
4273 i_shdrp[d->rel.idx] = d->rel.hdr;
4275 i_shdrp[d->rela.idx] = d->rela.hdr;
4662 _bfd_elf_assign_file_position_for_section (Elf_Internal_Shdr *i_shdrp,
4667 if (i_shdrp->sh_addralign > 1)
4669 file_ptr salign = i_shdrp->sh_addralign & -i_shdrp->sh_addralign;
4681 i_shdrp->sh_offset = offset;
4682 if (i_shdrp->bfd_section != NULL)
4683 i_shdrp->bfd_section->filepos = offset;
4684 if (i_shdrp->sh_type != SHT_NOBITS)
4685 offset += i_shdrp->sh_size;
7226 Elf_Internal_Shdr **i_shdrp;
7247 i_shdrp = elf_elfsections (abfd);
7263 i_shdrp[count]->sh_name
7265 i_shdrp[count]->sh_name);
7267 if (!(*bed->elf_backend_section_processing) (abfd, i_shdrp[count]))
7269 if (i_shdrp[count]->contents)
7271 bfd_size_type amt = i_shdrp[count]->sh_size;
7273 if (bfd_seek (abfd, i_shdrp[count]->sh_offset, SEEK_SET) != 0
7274 || bfd_write (i_shdrp[count]->contents, amt, abfd) != amt)
7293 /* This is last since write_shdrs_and_ehdr can touch i_shdrp[0]. */