Home | History | Annotate | Download | only in bfd

Lines Matching defs:this_hdr

805       Elf_Internal_Shdr *this_hdr = &elf_section_data (s)->this_hdr;
806 if ((this_hdr->sh_flags & SHF_LINK_ORDER) != 0)
808 unsigned int elfsec = this_hdr->sh_link;
824 this_hdr = elf_elfsections (abfd)[elfsec];
825 linksec = this_hdr->bfd_section;
909 elf_section_data (newsect)->this_hdr = *hdr;
3622 Elf_Internal_Shdr *this_hdr;
3635 this_hdr = &esd->this_hdr;
3653 this_hdr->sh_name = (unsigned int) -1;
3656 this_hdr->sh_name
3659 if (this_hdr->sh_name == (unsigned int) -1)
3670 this_hdr->sh_addr = asect->vma * bfd_octets_per_byte (abfd, asect);
3672 this_hdr->sh_addr = 0;
3674 this_hdr->sh_offset = 0;
3675 this_hdr->sh_size = asect->size;
3676 this_hdr->sh_link = 0;
3689 mask = ((bfd_vma) 1 << asect->alignment_power) | this_hdr->sh_addr;
3690 this_hdr->sh_addralign = mask & -mask;
3694 this_hdr->bfd_section = asect;
3695 this_hdr->contents = NULL;
3706 if (this_hdr->sh_type == SHT_NULL)
3707 this_hdr->sh_type = sh_type;
3708 else if (this_hdr->sh_type == SHT_NOBITS
3718 this_hdr->sh_type = sh_type;
3721 switch (this_hdr->sh_type)
3735 this_hdr->sh_entsize = bed->s->arch_size / 8;
3739 this_hdr->sh_entsize = bed->s->sizeof_hash_entry;
3743 this_hdr->sh_entsize = bed->s->sizeof_sym;
3747 this_hdr->sh_entsize = bed->s->sizeof_dyn;
3752 this_hdr->sh_entsize = bed->s->sizeof_rela;
3757 this_hdr->sh_entsize = bed->s->sizeof_rel;
3761 this_hdr->sh_entsize = sizeof (Elf_External_Versym);
3765 this_hdr->sh_entsize = 0;
3769 if (this_hdr->sh_info == 0)
3770 this_hdr->sh_info = elf_tdata (abfd)->cverdefs;
3773 || this_hdr->sh_info == elf_tdata (abfd)->cverdefs);
3777 this_hdr->sh_entsize = 0;
3781 if (this_hdr->sh_info == 0)
3782 this_hdr->sh_info = elf_tdata (abfd)->cverrefs;
3785 || this_hdr->sh_info == elf_tdata (abfd)->cverrefs);
3789 this_hdr->sh_entsize = GRP_ENTRY_SIZE;
3793 this_hdr->sh_entsize = bed->s->arch_size == 64 ? 0 : 4;
3798 this_hdr->sh_flags |= SHF_ALLOC;
3800 this_hdr->sh_flags |= SHF_WRITE;
3802 this_hdr->sh_flags |= SHF_EXECINSTR;
3805 this_hdr->sh_flags |= SHF_MERGE;
3806 this_hdr->sh_entsize = asect->entsize;
3810 this_hdr->sh_flags |= SHF_STRINGS;
3811 this_hdr->sh_entsize = asect->entsize;
3814 this_hdr->sh_flags |= SHF_GROUP;
3817 this_hdr->sh_flags |= SHF_TLS;
3823 this_hdr->sh_size = 0;
3826 this_hdr->sh_size = o->offset + o->size;
3827 if (this_hdr->sh_size != 0)
3828 this_hdr->sh_type = SHT_NOBITS;
3833 this_hdr->sh_flags |= SHF_EXCLUDE;
3835 if (this_hdr->sh_entsize == 0)
3836 this_hdr->sh_entsize = asect->entsize;
3880 sh_type = this_hdr->sh_type;
3882 && !(*bed->elf_backend_fake_sections) (abfd, this_hdr, asect))
3892 this_hdr->sh_type = sh_type;
3916 if (elf_section_data (sec)->this_hdr.sh_info == 0)
3938 elf_section_data (sec)->this_hdr.sh_info = symindx;
3940 else if (elf_section_data (sec)->this_hdr.sh_info == (unsigned int) -2)
3956 symndx = sec_data->this_hdr.sh_info;
3970 elf_section_data (sec)->this_hdr.sh_info = h->indx;
3981 elf_section_data (sec)->this_hdr.contents = sec->contents;
4096 type = elf_section_data (reloc_sec)->this_hdr.sh_type;
4143 if (d->this_hdr.sh_type == SHT_GROUP)
4170 if (d->this_hdr.sh_type != SHT_GROUP)
4172 if (d->this_hdr.sh_name != (unsigned int) -1)
4173 _bfd_elf_strtab_addref (elf_shstrtab (abfd), d->this_hdr.sh_name);
4273 i_shdrp[d->this_idx] = &d->this_hdr;
4298 if ((d->this_hdr.sh_flags & SHF_LINK_ORDER) != 0)
4315 abfd, d->this_hdr.bfd_section, s, s->owner);
4333 abfd, d->this_hdr.bfd_section, s, s->owner);
4338 d->this_hdr.sh_link
4343 switch (d->this_hdr.sh_type)
4350 if (d->this_hdr.sh_link == 0)
4359 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
4362 d->this_hdr.sh_link = elf_onesymtab (abfd);
4368 d->this_hdr.sh_info = elf_section_data (s)->this_idx;
4369 d->this_hdr.sh_flags |= SHF_INFO_LINK;
4394 elf_section_data (s)->this_hdr.sh_link = d->this_idx;
4397 elf_section_data (s)->this_hdr.sh_entsize = 12;
4411 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
4421 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
4431 d->this_hdr.sh_link = elf_section_data (s)->this_idx;
4435 d->this_hdr.sh_link = elf_onesymtab (abfd);
4932 if (elf_section_data (s)->this_hdr.sh_info > PT_GNU_MBIND_NUM)
4938 abfd, s, elf_section_data (s)->this_hdr.sh_info);
5582 && elf_section_data (s)->this_hdr.sh_info <= PT_GNU_MBIND_NUM)
5597 + elf_section_data (s)->this_hdr.sh_info);
6314 Elf_Internal_Shdr *this_hdr;
6317 this_hdr = &elf_section_data (sec)->this_hdr;
6322 && (this_hdr->sh_type != SHT_NOBITS
6323 || ((this_hdr->sh_flags & SHF_ALLOC) != 0
6324 && ((this_hdr->sh_flags & SHF_TLS) == 0
6349 if (this_hdr->sh_type != SHT_NOBITS)
6373 if (this_hdr->sh_type != SHT_NOBITS || i == 0)
6376 if (this_hdr->sh_type == SHT_NOBITS)
6380 if (this_hdr->sh_type != SHT_NOBITS)
6390 this_hdr->sh_offset = sec->filepos = off;
6391 off += this_hdr->sh_size;
6392 p->p_filesz = this_hdr->sh_size;
6407 if (this_hdr->sh_type == SHT_NOBITS
6408 && (this_hdr->sh_flags & SHF_TLS) != 0
6409 && this_hdr->sh_offset == 0)
6419 bfd_vma adjust = vma_page_aligned_bias (this_hdr->sh_addr,
6421 this_hdr->sh_offset = sec->filepos = off + adjust;
6425 this_hdr->sh_offset = sec->filepos = off;
6426 if (this_hdr->sh_type != SHT_NOBITS)
6427 off += this_hdr->sh_size;
6430 if (this_hdr->sh_type != SHT_NOBITS)
6432 p->p_filesz += this_hdr->sh_size;
6436 if ((this_hdr->sh_flags & SHF_ALLOC) != 0)
6437 p->p_memsz += this_hdr->sh_size;
6439 else if ((this_hdr->sh_flags & SHF_ALLOC) != 0)
6442 p->p_memsz += this_hdr->sh_size;
6446 else if ((this_hdr->sh_flags & SHF_TLS) == 0)
6447 p->p_memsz += this_hdr->sh_size;
6460 if ((this_hdr->sh_flags & SHF_EXECINSTR) != 0)
6462 if ((this_hdr->sh_flags & SHF_WRITE) != 0)
6498 ->this_hdr), p) != 0
6500 ->this_hdr), p) != 0)
6509 Elf_Internal_Shdr *this_hdr;
6513 this_hdr = &(elf_section_data(sec)->this_hdr);
6514 if (!ELF_SECTION_IN_SEGMENT_1 (this_hdr, p, check_vma, 0)
6515 && !ELF_TBSS_SPECIAL (this_hdr, p))
6834 Elf_Internal_Shdr *hdr = &elf_section_data (sect)->this_hdr;
8190 Elf_Internal_Shdr *this_hdr;
8199 this_hdr = &(elf_section_data(section)->this_hdr);
8200 if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
8270 this_hdr = &(elf_section_data(section)->this_hdr);
8271 if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
8288 seg_off = this_hdr->sh_offset - segment->p_offset;
8290 seg_off = this_hdr->sh_addr - segment->p_vaddr;
8344 Elf_Internal_Shdr *this_hdr;
8383 this_hdr = &(elf_section_data(section)->this_hdr);
8384 if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
8472 Elf_Internal_Shdr *ihdr = &elf_section_data (isec)->this_hdr;
8473 Elf_Internal_Shdr *ohdr = &elf_section_data (osec)->this_hdr;
8534 elf_section_data (osec)->this_hdr.sh_info
8535 = elf_section_data (isec)->this_hdr.sh_info;
9280 if (elf_section_data (s)->this_hdr.sh_link == elf_dynsymtab (abfd)
9281 && (elf_section_data (s)->this_hdr.sh_type == SHT_REL
9282 || elf_section_data (s)->this_hdr.sh_type == SHT_RELA)
9283 && (elf_section_data (s)->this_hdr.sh_flags & SHF_COMPRESSED) == 0)
9285 ext_rel_size += elf_section_data (s)->this_hdr.sh_size;
9286 if (ext_rel_size < elf_section_data (s)->this_hdr.sh_size)
9291 count += NUM_SHDR_ENTRIES (&elf_section_data (s)->this_hdr);
9338 this_hdr.sh_link == elf_dynsymtab (abfd)
9339 && (elf_section_data (s)->this_hdr.sh_type == SHT_REL
9340 || elf_section_data (s)->this_hdr.sh_type == SHT_RELA)
9341 && (elf_section_data (s)->this_hdr.sh_flags & SHF_COMPRESSED) == 0)
9348 count = NUM_SHDR_ENTRIES (&elf_section_data (s)->this_hdr);
10067 hdr = &elf_section_data (section)->this_hdr;
10232 free (elf_section_data (sec)->this_hdr.contents);
10233 elf_section_data (sec)->this_hdr.contents = NULL;
13425 hdr = &elf_section_data (relplt)->this_hdr;
13651 Elf_Internal_Shdr * hdr = & elf_section_data (relsec)->this_hdr;
13918 Elf_Internal_Shdr * const hdr = (Elf_Internal_Shdr *) & esd->this_hdr;
14171 || elf_section_data (sec)->this_hdr.contents == contents))
14177 if (elf_section_data (sec)->this_hdr.contents == contents)
14178 elf_section_data (sec)->this_hdr.contents = NULL;
14218 elf_section_data (sec)->this_hdr.contents = NULL;