Home | History | Annotate | Download | only in bfd

Lines Matching refs:i_shdrp

335   Elf_Internal_Shdr **i_shdrp;
340 i_shdrp = elf_elfsections (abfd);
341 if (i_shdrp == 0
343 || i_shdrp[shindex] == 0)
346 shstrtab = i_shdrp[shindex]->contents;
350 offset = i_shdrp[shindex]->sh_offset;
351 shstrtabsize = i_shdrp[shindex]->sh_size;
360 i_shdrp[shindex]->sh_size = 0;
370 i_shdrp[shindex]->contents = shstrtab;
4124 Elf_Internal_Shdr **i_shdrp;
4238 i_shdrp = (Elf_Internal_Shdr **) bfd_zalloc (abfd, amt);
4239 if (i_shdrp == NULL)
4242 i_shdrp[0] = (Elf_Internal_Shdr *) bfd_zalloc (abfd,
4244 if (i_shdrp[0] == NULL)
4246 bfd_release (abfd, i_shdrp);
4250 elf_elfsections (abfd) = i_shdrp;
4252 i_shdrp[elf_shstrtab_sec (abfd)] = &t->shstrtab_hdr;
4255 i_shdrp[elf_onesymtab (abfd)] = &t->symtab_hdr;
4260 i_shdrp[entry->ndx] = & entry->hdr;
4263 i_shdrp[elf_strtab_sec (abfd)] = &t->strtab_hdr;
4273 i_shdrp[d->this_idx] = &d->this_hdr;
4275 i_shdrp[d->rel.idx] = d->rel.hdr;
4277 i_shdrp[d->rela.idx] = d->rela.hdr;
4665 _bfd_elf_assign_file_position_for_section (Elf_Internal_Shdr *i_shdrp,
4670 if (i_shdrp->sh_addralign > 1)
4672 file_ptr salign = i_shdrp->sh_addralign & -i_shdrp->sh_addralign;
4684 i_shdrp->sh_offset = offset;
4685 if (i_shdrp->bfd_section != NULL)
4686 i_shdrp->bfd_section->filepos = offset;
4687 if (i_shdrp->sh_type != SHT_NOBITS)
4688 offset += i_shdrp->sh_size;
7239 Elf_Internal_Shdr **i_shdrp;
7260 i_shdrp = elf_elfsections (abfd);
7276 i_shdrp[count]->sh_name
7278 i_shdrp[count]->sh_name);
7280 if (!(*bed->elf_backend_section_processing) (abfd, i_shdrp[count]))
7282 if (i_shdrp[count]->contents)
7284 bfd_size_type amt = i_shdrp[count]->sh_size;
7286 if (bfd_seek (abfd, i_shdrp[count]->sh_offset, SEEK_SET) != 0
7287 || bfd_write (i_shdrp[count]->contents, amt, abfd) != amt)
7306 /* This is last since write_shdrs_and_ehdr can touch i_shdrp[0]. */