Lines Matching refs:asect

2631 			  asection *asect,  in _bfd_elf_init_reloc_shdr()  argument
2644 amt = sizeof ".rela" + strlen (asect->name); in _bfd_elf_init_reloc_shdr()
2648 sprintf (name, "%s%s", use_rela_p ? ".rela" : ".rel", asect->name); in _bfd_elf_init_reloc_shdr()
2687 elf_fake_sections (bfd *abfd, asection *asect, void *fsarg) in elf_fake_sections() argument
2691 struct bfd_elf_section_data *esd = elf_section_data (asect); in elf_fake_sections()
2705 asect->name, FALSE); in elf_fake_sections()
2714 if ((asect->flags & SEC_ALLOC) != 0 in elf_fake_sections()
2715 || asect->user_set_vma) in elf_fake_sections()
2716 this_hdr->sh_addr = asect->vma; in elf_fake_sections()
2721 this_hdr->sh_size = asect->size; in elf_fake_sections()
2723 this_hdr->sh_addralign = (bfd_vma) 1 << asect->alignment_power; in elf_fake_sections()
2727 this_hdr->bfd_section = asect; in elf_fake_sections()
2732 if ((asect->flags & SEC_GROUP) != 0) in elf_fake_sections()
2735 sh_type = bfd_elf_get_default_section_type (asect->flags); in elf_fake_sections()
2741 && (asect->flags & SEC_ALLOC) != 0) in elf_fake_sections()
2748 (_("warning: section `%A' type changed to PROGBITS"), asect); in elf_fake_sections()
2825 if ((asect->flags & SEC_ALLOC) != 0) in elf_fake_sections()
2827 if ((asect->flags & SEC_READONLY) == 0) in elf_fake_sections()
2829 if ((asect->flags & SEC_CODE) != 0) in elf_fake_sections()
2831 if ((asect->flags & SEC_MERGE) != 0) in elf_fake_sections()
2834 this_hdr->sh_entsize = asect->entsize; in elf_fake_sections()
2835 if ((asect->flags & SEC_STRINGS) != 0) in elf_fake_sections()
2838 if ((asect->flags & SEC_GROUP) == 0 && elf_group_name (asect) != NULL) in elf_fake_sections()
2840 if ((asect->flags & SEC_THREAD_LOCAL) != 0) in elf_fake_sections()
2843 if (asect->size == 0 in elf_fake_sections()
2844 && (asect->flags & SEC_HAS_CONTENTS) == 0) in elf_fake_sections()
2846 struct bfd_link_order *o = asect->map_tail.link_order; in elf_fake_sections()
2857 if ((asect->flags & (SEC_GROUP | SEC_EXCLUDE)) == SEC_EXCLUDE) in elf_fake_sections()
2864 if ((asect->flags & SEC_RELOC) != 0) in elf_fake_sections()
2874 && !_bfd_elf_init_reloc_shdr (abfd, &esd->rel, asect, FALSE)) in elf_fake_sections()
2880 && !_bfd_elf_init_reloc_shdr (abfd, &esd->rela, asect, TRUE)) in elf_fake_sections()
2887 (asect->use_rela_p in elf_fake_sections()
2889 asect, in elf_fake_sections()
2890 asect->use_rela_p)) in elf_fake_sections()
2897 && !(*bed->elf_backend_fake_sections) (abfd, this_hdr, asect)) in elf_fake_sections()
2900 if (sh_type == SHT_NOBITS && asect->size != 0) in elf_fake_sections()
3403 asection *asect; in elf_map_symbols() local
3411 for (asect = abfd->sections; asect; asect = asect->next) in elf_map_symbols()
3413 if (max_index < asect->index) in elf_map_symbols()
3414 max_index = asect->index; in elf_map_symbols()
3457 for (asect = abfd->sections; asect; asect = asect->next) in elf_map_symbols()
3459 if (sect_syms[asect->index] == NULL) in elf_map_symbols()
3461 if (!sym_is_global (abfd, asect->symbol)) in elf_map_symbols()
3489 for (asect = abfd->sections; asect; asect = asect->next) in elf_map_symbols()
3491 if (sect_syms[asect->index] == NULL) in elf_map_symbols()
3493 asymbol *sym = asect->symbol; in elf_map_symbols()
3496 sect_syms[asect->index] = sym; in elf_map_symbols()
5503 _bfd_elf_section_from_bfd_section (bfd *abfd, struct bfd_section *asect) in _bfd_elf_section_from_bfd_section() argument
5508 if (elf_section_data (asect) != NULL in _bfd_elf_section_from_bfd_section()
5509 && elf_section_data (asect)->this_idx != 0) in _bfd_elf_section_from_bfd_section()
5510 return elf_section_data (asect)->this_idx; in _bfd_elf_section_from_bfd_section()
5512 if (bfd_is_abs_section (asect)) in _bfd_elf_section_from_bfd_section()
5514 else if (bfd_is_com_section (asect)) in _bfd_elf_section_from_bfd_section()
5516 else if (bfd_is_und_section (asect)) in _bfd_elf_section_from_bfd_section()
5526 if ((*bed->elf_backend_section_from_bfd_section) (abfd, asect, &retval)) in _bfd_elf_section_from_bfd_section()
7125 sec_ptr asect) in _bfd_elf_get_reloc_upper_bound() argument
7127 return (asect->reloc_count + 1) * sizeof (arelent *); in _bfd_elf_get_reloc_upper_bound()