Lines Matching defs:this_hdr

691       Elf_Internal_Shdr *this_hdr = &elf_section_data (s)->this_hdr;
692 if ((this_hdr->sh_flags & SHF_LINK_ORDER) != 0)
694 unsigned int elfsec = this_hdr->sh_link;
711 this_hdr = elf_elfsections (abfd)[elfsec];
716 link = this_hdr->bfd_section;
800 elf_section_data (newsect)->this_hdr = *hdr;
2769 Elf_Internal_Shdr *this_hdr;
2779 this_hdr = &elf_section_data (asect)->this_hdr;
2781 this_hdr->sh_name = (unsigned int) _bfd_elf_strtab_add (elf_shstrtab (abfd),
2783 if (this_hdr->sh_name == (unsigned int) -1)
2793 this_hdr->sh_addr = asect->vma;
2795 this_hdr->sh_addr = 0;
2797 this_hdr->sh_offset = 0;
2798 this_hdr->sh_size = asect->size;
2799 this_hdr->sh_link = 0;
2800 this_hdr->sh_addralign = 1 << asect->alignment_power;
2804 this_hdr->bfd_section = asect;
2805 this_hdr->contents = NULL;
2809 if (this_hdr->sh_type == SHT_NULL)
2812 this_hdr->sh_type = SHT_GROUP;
2816 this_hdr->sh_type = SHT_NOBITS;
2818 this_hdr->sh_type = SHT_PROGBITS;
2821 switch (this_hdr->sh_type)
2836 this_hdr->sh_entsize = bed->s->sizeof_hash_entry;
2840 this_hdr->sh_entsize = bed->s->sizeof_sym;
2844 this_hdr->sh_entsize = bed->s->sizeof_dyn;
2849 this_hdr->sh_entsize = bed->s->sizeof_rela;
2854 this_hdr->sh_entsize = bed->s->sizeof_rel;
2858 this_hdr->sh_entsize = sizeof (Elf_External_Versym);
2862 this_hdr->sh_entsize = 0;
2866 if (this_hdr->sh_info == 0)
2867 this_hdr->sh_info = elf_tdata (abfd)->cverdefs;
2870 || this_hdr->sh_info == elf_tdata (abfd)->cverdefs);
2874 this_hdr->sh_entsize = 0;
2878 if (this_hdr->sh_info == 0)
2879 this_hdr->sh_info = elf_tdata (abfd)->cverrefs;
2882 || this_hdr->sh_info == elf_tdata (abfd)->cverrefs);
2886 this_hdr->sh_entsize = GRP_ENTRY_SIZE;
2890 this_hdr->sh_entsize = bed->s->arch_size == 64 ? 0 : 4;
2895 this_hdr->sh_flags |= SHF_ALLOC;
2897 this_hdr->sh_flags |= SHF_WRITE;
2899 this_hdr->sh_flags |= SHF_EXECINSTR;
2902 this_hdr->sh_flags |= SHF_MERGE;
2903 this_hdr->sh_entsize = asect->entsize;
2905 this_hdr->sh_flags |= SHF_STRINGS;
2908 this_hdr->sh_flags |= SHF_GROUP;
2911 this_hdr->sh_flags |= SHF_TLS;
2917 this_hdr->sh_size = 0;
2920 this_hdr->sh_size = o->offset + o->size;
2921 if (this_hdr->sh_size != 0)
2922 this_hdr->sh_type = SHT_NOBITS;
2928 sh_type = this_hdr->sh_type;
2930 && !(*bed->elf_backend_fake_sections) (abfd, this_hdr, asect))
2937 this_hdr->sh_type = sh_type;
2982 elf_section_data (sec)->this_hdr.sh_info = symindx;
2992 elf_section_data (sec)->this_hdr.contents = sec->contents;
3060 if (d->this_hdr.sh_type == SHT_GROUP)
3082 if (d->this_hdr.sh_type != SHT_GROUP)
3088 _bfd_elf_strtab_addref (elf_shstrtab (abfd), d->this_hdr.sh_name);
3181 i_shdrp[d->this_idx] = &d->this_hdr;
3204 if ((d->this_hdr.sh_flags & SHF_LINK_ORDER) != 0)
3218 abfd, d->this_hdr.bfd_section,
3241 abfd, d->this_hdr.bfd_section, s, s->owner);
3247 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
3265 switch (d->this_hdr.sh_type)
3277 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
3281 if (d->this_hdr.sh_type == SHT_REL)
3287 d->this_hdr.sh_info = elf_section_data (s)->this_idx;
3311 elf_section_data (s)->this_hdr.sh_link = d->this_idx;
3314 if (elf_section_data (s)->this_hdr.sh_entsize == 0)
3315 elf_section_data (s)->this_hdr.sh_entsize
3330 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
3340 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
3350 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
3354 d->this_hdr.sh_link = t->symtab_section;
4568 Elf_Internal_Shdr *this_hdr;
4571 this_hdr = &elf_section_data (sec)->this_hdr;
4579 if (this_hdr->sh_type != SHT_NOBITS
4580 || ((this_hdr->sh_flags & SHF_ALLOC) != 0
4581 && ((this_hdr->sh_flags & SHF_TLS) == 0
4593 if (this_hdr->sh_type != SHT_NOBITS)
4607 this_hdr->sh_offset = sec->filepos = off;
4608 off += this_hdr->sh_size;
4609 p->p_filesz = this_hdr->sh_size;
4626 this_hdr->sh_offset = sec->filepos = off;
4627 if (this_hdr->sh_type != SHT_NOBITS)
4628 off += this_hdr->sh_size;
4631 if (this_hdr->sh_type != SHT_NOBITS)
4633 p->p_filesz += this_hdr->sh_size;
4637 if ((this_hdr->sh_flags & SHF_ALLOC) != 0)
4638 p->p_memsz += this_hdr->sh_size;
4640 else if ((this_hdr->sh_flags & SHF_ALLOC) != 0)
4643 p->p_memsz += this_hdr->sh_size;
4647 else if ((this_hdr->sh_flags & SHF_TLS) == 0)
4648 p->p_memsz += this_hdr->sh_size;
4663 if ((this_hdr->sh_flags & SHF_EXECINSTR) != 0)
4665 if ((this_hdr->sh_flags & SHF_WRITE) != 0)
4676 Elf_Internal_Shdr *this_hdr;
4680 this_hdr = &(elf_section_data(sec)->this_hdr);
4681 if (this_hdr->sh_size != 0
4682 && !ELF_IS_SECTION_IN_SEGMENT_FILE (this_hdr, p))
4810 hdr = &elf_section_data (m->sections[m->count - 1])->this_hdr;
5879 Elf_Internal_Shdr *this_hdr;
5891 this_hdr = &(elf_section_data(section)->this_hdr);
5892 if (ELF_IS_SECTION_IN_SEGMENT_FILE (this_hdr, segment))
5952 this_hdr = &(elf_section_data(section)->this_hdr);
5953 if (ELF_IS_SECTION_IN_SEGMENT_FILE (this_hdr, segment))
5991 Elf_Internal_Shdr *this_hdr;
6022 this_hdr = &(elf_section_data(section)->this_hdr);
6023 if (ELF_IS_SECTION_IN_SEGMENT_FILE (this_hdr, segment))
6102 ihdr = &elf_section_data (isec)->this_hdr;
6109 ohdr = &elf_section_data (osec)->this_hdr;
6134 ihdr = &elf_section_data (isec)->this_hdr;
6135 ohdr = &elf_section_data (osec)->this_hdr;
6651 && elf_section_data (s)->this_hdr.sh_link == elf_dynsymtab (abfd)
6652 && (elf_section_data (s)->this_hdr.sh_type == SHT_REL
6653 || elf_section_data (s)->this_hdr.sh_type == SHT_RELA))
6654 ret += ((s->size / elf_section_data (s)->this_hdr.sh_entsize)
6688 && elf_section_data (s)->this_hdr.sh_link == elf_dynsymtab (abfd)
6689 && (elf_section_data (s)->this_hdr.sh_type == SHT_REL
6690 || elf_section_data (s)->this_hdr.sh_type == SHT_RELA))
6697 count = s->size / elf_section_data (s)->this_hdr.sh_entsize;
7310 hdr = &elf_section_data (section)->this_hdr;
8824 hdr = &elf_section_data (relplt)->this_hdr;