Home | History | Annotate | Download | only in bfd

Lines Matching defs:this_hdr

737       Elf_Internal_Shdr *this_hdr = &elf_section_data (s)->this_hdr;
738 if ((this_hdr->sh_flags & SHF_LINK_ORDER) != 0)
740 unsigned int elfsec = this_hdr->sh_link;
756 this_hdr = elf_elfsections (abfd)[elfsec];
757 linksec = this_hdr->bfd_section;
841 elf_section_data (newsect)->this_hdr = *hdr;
3558 Elf_Internal_Shdr *this_hdr;
3571 this_hdr = &esd->this_hdr;
3589 this_hdr->sh_name = (unsigned int) -1;
3592 this_hdr->sh_name
3595 if (this_hdr->sh_name == (unsigned int) -1)
3606 this_hdr->sh_addr = asect->vma * bfd_octets_per_byte (abfd, asect);
3608 this_hdr->sh_addr = 0;
3610 this_hdr->sh_offset = 0;
3611 this_hdr->sh_size = asect->size;
3612 this_hdr->sh_link = 0;
3625 mask = ((bfd_vma) 1 << asect->alignment_power) | this_hdr->sh_addr;
3626 this_hdr->sh_addralign = mask & -mask;
3630 this_hdr->bfd_section = asect;
3631 this_hdr->contents = NULL;
3642 if (this_hdr->sh_type == SHT_NULL)
3643 this_hdr->sh_type = sh_type;
3644 else if (this_hdr->sh_type == SHT_NOBITS
3654 this_hdr->sh_type = sh_type;
3657 switch (this_hdr->sh_type)
3671 this_hdr->sh_entsize = bed->s->arch_size / 8;
3675 this_hdr->sh_entsize = bed->s->sizeof_hash_entry;
3679 this_hdr->sh_entsize = bed->s->sizeof_sym;
3683 this_hdr->sh_entsize = bed->s->sizeof_dyn;
3688 this_hdr->sh_entsize = bed->s->sizeof_rela;
3693 this_hdr->sh_entsize = bed->s->sizeof_rel;
3697 this_hdr->sh_entsize = sizeof (Elf_External_Versym);
3701 this_hdr->sh_entsize = 0;
3705 if (this_hdr->sh_info == 0)
3706 this_hdr->sh_info = elf_tdata (abfd)->cverdefs;
3709 || this_hdr->sh_info == elf_tdata (abfd)->cverdefs);
3713 this_hdr->sh_entsize = 0;
3717 if (this_hdr->sh_info == 0)
3718 this_hdr->sh_info = elf_tdata (abfd)->cverrefs;
3721 || this_hdr->sh_info == elf_tdata (abfd)->cverrefs);
3725 this_hdr->sh_entsize = GRP_ENTRY_SIZE;
3729 this_hdr->sh_entsize = bed->s->arch_size == 64 ? 0 : 4;
3734 this_hdr->sh_flags |= SHF_ALLOC;
3736 this_hdr->sh_flags |= SHF_WRITE;
3738 this_hdr->sh_flags |= SHF_EXECINSTR;
3741 this_hdr->sh_flags |= SHF_MERGE;
3742 this_hdr->sh_entsize = asect->entsize;
3746 this_hdr->sh_flags |= SHF_STRINGS;
3747 this_hdr->sh_entsize = asect->entsize;
3750 this_hdr->sh_flags |= SHF_GROUP;
3753 this_hdr->sh_flags |= SHF_TLS;
3759 this_hdr->sh_size = 0;
3762 this_hdr->sh_size = o->offset + o->size;
3763 if (this_hdr->sh_size != 0)
3764 this_hdr->sh_type = SHT_NOBITS;
3769 this_hdr->sh_flags |= SHF_EXCLUDE;
3813 sh_type = this_hdr->sh_type;
3815 && !(*bed->elf_backend_fake_sections) (abfd, this_hdr, asect))
3825 this_hdr->sh_type = sh_type;
3849 if (elf_section_data (sec)->this_hdr.sh_info == 0)
3871 elf_section_data (sec)->this_hdr.sh_info = symindx;
3873 else if (elf_section_data (sec)->this_hdr.sh_info == (unsigned int) -2)
3889 symndx = sec_data->this_hdr.sh_info;
3903 elf_section_data (sec)->this_hdr.sh_info = h->indx;
3914 elf_section_data (sec)->this_hdr.contents = sec->contents;
4029 type = elf_section_data (reloc_sec)->this_hdr.sh_type;
4076 if (d->this_hdr.sh_type == SHT_GROUP)
4103 if (d->this_hdr.sh_type != SHT_GROUP)
4105 if (d->this_hdr.sh_name != (unsigned int) -1)
4106 _bfd_elf_strtab_addref (elf_shstrtab (abfd), d->this_hdr.sh_name);
4206 i_shdrp[d->this_idx] = &d->this_hdr;
4231 if ((d->this_hdr.sh_flags & SHF_LINK_ORDER) != 0)
4248 abfd, d->this_hdr.bfd_section, s, s->owner);
4266 abfd, d->this_hdr.bfd_section, s, s->owner);
4271 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
4275 switch (d->this_hdr.sh_type)
4282 if (d->this_hdr.sh_link == 0)
4291 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
4294 d->this_hdr.sh_link = elf_onesymtab (abfd);
4300 d->this_hdr.sh_info = elf_section_data (s)->this_idx;
4301 d->this_hdr.sh_flags |= SHF_INFO_LINK;
4326 elf_section_data (s)->this_hdr.sh_link = d->this_idx;
4329 elf_section_data (s)->this_hdr.sh_entsize = 12;
4343 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
4353 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
4363 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
4367 d->this_hdr.sh_link = elf_onesymtab (abfd);
4867 if (elf_section_data (s)->this_hdr.sh_info > PT_GNU_MBIND_NUM)
4873 abfd, s, elf_section_data (s)->this_hdr.sh_info);
5517 && elf_section_data (s)->this_hdr.sh_info <= PT_GNU_MBIND_NUM)
5532 + elf_section_data (s)->this_hdr.sh_info);
6249 Elf_Internal_Shdr *this_hdr;
6252 this_hdr = &elf_section_data (sec)->this_hdr;
6257 && (this_hdr->sh_type != SHT_NOBITS
6258 || ((this_hdr->sh_flags & SHF_ALLOC) != 0
6259 && ((this_hdr->sh_flags & SHF_TLS) == 0
6284 if (this_hdr->sh_type != SHT_NOBITS)
6308 if (this_hdr->sh_type != SHT_NOBITS || i == 0)
6311 if (this_hdr->sh_type == SHT_NOBITS)
6315 if (this_hdr->sh_type != SHT_NOBITS)
6325 this_hdr->sh_offset = sec->filepos = off;
6326 off += this_hdr->sh_size;
6327 p->p_filesz = this_hdr->sh_size;
6342 if (this_hdr->sh_type == SHT_NOBITS
6343 && (this_hdr->sh_flags & SHF_TLS) != 0
6344 && this_hdr->sh_offset == 0)
6354 bfd_vma adjust = vma_page_aligned_bias (this_hdr->sh_addr,
6356 this_hdr->sh_offset = sec->filepos = off + adjust;
6360 this_hdr->sh_offset = sec->filepos = off;
6361 if (this_hdr->sh_type != SHT_NOBITS)
6362 off += this_hdr->sh_size;
6365 if (this_hdr->sh_type != SHT_NOBITS)
6367 p->p_filesz += this_hdr->sh_size;
6371 if ((this_hdr->sh_flags & SHF_ALLOC) != 0)
6372 p->p_memsz += this_hdr->sh_size;
6374 else if ((this_hdr->sh_flags & SHF_ALLOC) != 0)
6377 p->p_memsz += this_hdr->sh_size;
6381 else if ((this_hdr->sh_flags & SHF_TLS) == 0)
6382 p->p_memsz += this_hdr->sh_size;
6395 if ((this_hdr->sh_flags & SHF_EXECINSTR) != 0)
6397 if ((this_hdr->sh_flags & SHF_WRITE) != 0)
6433 ->this_hdr), p) != 0
6435 ->this_hdr), p) != 0)
6444 Elf_Internal_Shdr *this_hdr;
6448 this_hdr = &(elf_section_data(sec)->this_hdr);
6449 if (!ELF_SECTION_IN_SEGMENT_1 (this_hdr, p, check_vma, 0)
6450 && !ELF_TBSS_SPECIAL (this_hdr, p))
6769 Elf_Internal_Shdr *hdr = &elf_section_data (sect)->this_hdr;
8125 Elf_Internal_Shdr *this_hdr;
8134 this_hdr = &(elf_section_data(section)->this_hdr);
8135 if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
8205 this_hdr = &(elf_section_data(section)->this_hdr);
8206 if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
8223 seg_off = this_hdr->sh_offset - segment->p_offset;
8225 seg_off = this_hdr->sh_addr - segment->p_vaddr;
8283 Elf_Internal_Shdr *this_hdr;
8322 this_hdr = &(elf_section_data(section)->this_hdr);
8323 if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
8412 Elf_Internal_Shdr *ihdr = &elf_section_data (isec)->this_hdr;
8413 Elf_Internal_Shdr *ohdr = &elf_section_data (osec)->this_hdr;
8455 elf_section_data (osec)->this_hdr.sh_info
8456 = elf_section_data (isec)->this_hdr.sh_info;
9211 if (elf_section_data (s)->this_hdr.sh_link == elf_dynsymtab (abfd)
9212 && (elf_section_data (s)->this_hdr.sh_type == SHT_REL
9213 || elf_section_data (s)->this_hdr.sh_type == SHT_RELA)
9214 && (elf_section_data (s)->this_hdr.sh_flags & SHF_COMPRESSED) == 0)
9216 ext_rel_size += elf_section_data (s)->this_hdr.sh_size;
9217 if (ext_rel_size < elf_section_data (s)->this_hdr.sh_size)
9222 count += NUM_SHDR_ENTRIES (&elf_section_data (s)->this_hdr);
9269 if (elf_section_data (s)->this_hdr.sh_link == elf_dynsymtab (abfd)
9270 && (elf_section_data (s)->this_hdr.sh_type == SHT_REL
9271 || elf_section_data (s)->this_hdr.sh_type == SHT_RELA)
9272 && (elf_section_data (s)->this_hdr.sh_flags & SHF_COMPRESSED) == 0)
9279 count = NUM_SHDR_ENTRIES (&elf_section_data (s)->this_hdr);
9998 hdr = &elf_section_data (section)->this_hdr;
10163 free (elf_section_data (sec)->this_hdr.contents);
10164 elf_section_data (sec)->this_hdr.contents = NULL;
13639 hdr = &elf_section_data (relplt)->this_hdr;
13868 Elf_Internal_Shdr * hdr = & elf_section_data (relsec)->this_hdr;
14136 Elf_Internal_Shdr * const hdr = (Elf_Internal_Shdr *) & esd->this_hdr;
14389 || elf_section_data (sec)->this_hdr.contents == contents))
14395 if (elf_section_data (sec)->this_hdr.contents == contents)
14396 elf_section_data (sec)->this_hdr.contents = NULL;
14436 elf_section_data (sec)->this_hdr.contents = NULL;