Lines Matching defs:sec

2078 #define elf32_arm_section_data(sec) \
2079 ((_arm_elf_section_data *) elf_section_data (sec))
2849 elf32_arm_section_map_add (asection *sec, char type, bfd_vma vma)
2851 struct _arm_elf_section_data *sec_data = elf32_arm_section_data (sec);
3003 asection *sec;
3010 sec = bfd_get_section_by_name (abfd, ARM2THUMB_GLUE_SECTION_NAME);
3012 if (sec == NULL)
3020 sec = bfd_make_section_with_flags (abfd,
3024 if (sec == NULL
3025 || !bfd_set_section_alignment (abfd, sec, 2))
3030 sec->gc_mark = 1;
3033 sec = bfd_get_section_by_name (abfd, THUMB2ARM_GLUE_SECTION_NAME);
3035 if (sec == NULL)
3040 sec = bfd_make_section_with_flags (abfd,
3044 if (sec == NULL
3045 || !bfd_set_section_alignment (abfd, sec, 2))
3048 sec->gc_mark = 1;
3051 sec = bfd_get_section_by_name (abfd, VFP11_ERRATUM_VENEER_SECTION_NAME);
3053 if (sec == NULL)
3058 sec = bfd_make_section_with_flags (abfd,
3062 if (sec == NULL
3063 || !bfd_set_section_alignment (abfd, sec, 2))
3066 sec->gc_mark = 1;
3118 asection *sec;
3142 sec = abfd->sections;
3144 if (sec == NULL)
3147 for (; sec != NULL; sec = sec->next)
3149 if (sec->reloc_count == 0)
3152 if ((sec->flags & SEC_EXCLUDE) != 0)
3159 = _bfd_elf_link_read_relocs (abfd, sec, (void *) NULL,
3165 irelend = internal_relocs + sec->reloc_count;
3188 if (elf_section_data (sec)->this_hdr.contents != NULL)
3189 contents = elf_section_data (sec)->this_hdr.contents;
3193 if (! bfd_malloc_and_get_section (abfd, sec, &contents))
3249 && elf_section_data (sec)->this_hdr.contents != contents)
3254 && elf_section_data (sec)->relocs != internal_relocs)
3263 && elf_section_data (sec)->this_hdr.contents != contents)
3266 && elf_section_data (sec)->relocs != internal_relocs)
3305 asection *sec = bfd_section_from_elf_index (abfd, isym->st_shndx);
3308 if (sec != NULL
3316 elf32_arm_section_map_add (sec, name[1], isym->st_value);
3623 asection *sec;
3672 for (sec = abfd->sections; sec != NULL; sec = sec->next)
3679 if (elf_section_type (sec) != SHT_PROGBITS
3680 || (elf_section_flags (sec) & SHF_EXECINSTR) == 0
3681 || (sec->flags & SEC_EXCLUDE) != 0
3682 || strcmp (sec->name, VFP11_ERRATUM_VENEER_SECTION_NAME) == 0)
3685 sec_data = elf32_arm_section_data (sec);
3690 if (elf_section_data (sec)->this_hdr.contents != NULL)
3691 contents = elf_section_data (sec)->this_hdr.contents;
3692 else if (! bfd_malloc_and_get_section (abfd, sec, &contents))
3702 ? sec->size : sec_data->map[span + 1].vma;
3784 errcount = ++(elf32_arm_section_data (sec)->erratumcount);
3798 record_vfp11_erratum_veneer (link_info, newerr, abfd, sec,
3814 && elf_section_data (sec)->this_hdr.contents != contents)
3823 && elf_section_data (sec)->this_hdr.contents != contents)
3836 asection *sec;
3852 for (sec = abfd->sections; sec != NULL; sec = sec->next)
3854 struct _arm_elf_section_data *sec_data = elf32_arm_section_data (sec);
4302 asection *sec;
4322 sec = eh->export_glue->root.u.def.section;
4324 BFD_ASSERT (sec->output_section != NULL);
4326 val = eh->export_glue->root.u.def.value + sec->output_offset
4327 + sec->output_section->vma;
4330 globals->obfd, sec, val, s,
6393 asection * sec;
6415 sec = NULL;
6421 sec = local_sections[r_symndx];
6424 relocation = (sec->output_section->vma
6425 + sec->output_offset
6428 && (sec->flags & SEC_MERGE)
6455 msec = sec;
6465 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
6473 h, sec, relocation,
6479 if (sec != NULL && elf_discarded_section (sec))
6500 howto, (bfd_signed_vma) sec->output_offset);
6502 rel->r_addend += sec->output_offset;
6514 name = bfd_section_name (input_bfd, sec);
6537 relocation, info, sec, name,
7003 asection *sec;
7071 for (sec = ibfd->sections; sec != NULL; sec = sec->next)
7074 if (strcmp (sec->name, ".glue_7")
7075 && strcmp (sec->name, ".glue_7t"))
7077 if ((bfd_get_section_flags (ibfd, sec)
7366 elf32_arm_gc_mark_hook (asection *sec,
7380 return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym);
7388 asection * sec,
7399 elf_section_data (sec)->local_dynrel = NULL;
7405 relend = relocs + sec->reloc_count;
7487 if (p->section == sec)
7513 asection *sec, const Elf_Internal_Rela *relocs)
7551 rel_end = relocs + sec->reloc_count;
7730 && (sec->flags & SEC_ALLOC) != 0
7747 elf_section_data (sec)->rel_hdr.sh_name));
7751 BFD_ASSERT (reloc_section_p (htab, name, sec));
7760 if ((sec->flags & SEC_ALLOC) != 0
7773 elf_section_data (sec)->sreloc = sreloc;
7792 sec, r_symndx);
7801 if (p == NULL || p->section != sec)
7810 p->section = sec;
7824 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
7831 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_offset))
9406 elf32_arm_fake_sections (bfd * abfd, Elf_Internal_Shdr * hdr, asection * sec)
9410 name = bfd_get_section_name (abfd, sec);
9456 asection * sec;
9472 record_section_with_arm_elf_section_data (asection * sec)
9479 entry->sec = sec;
9488 find_arm_elf_section_entry (asection * sec)
9500 if (last_entry->sec == sec)
9503 && last_entry->next->sec == sec)
9508 if (entry->sec == sec)
9522 get_arm_elf_section_data (asection * sec)
9526 entry = find_arm_elf_section_entry (sec);
9529 return elf32_arm_section_data (entry->sec);
9535 unrecord_section_with_arm_elf_section_data (asection * sec)
9539 entry = find_arm_elf_section_entry (sec);
9558 asection *sec;
9584 sym.st_value = osi->sec->output_section->vma
9585 + osi->sec->output_offset
9591 if (!osi->func (osi->finfo, names[type], &sym, osi->sec, NULL))
9697 osi.sec = bfd_get_section_by_name (htab->bfd_of_glue_owner,
9701 (output_bfd, osi.sec->output_section);
9720 osi.sec = bfd_get_section_by_name (htab->bfd_of_glue_owner,
9724 (output_bfd, osi.sec->output_section);
9740 osi.sec = htab->splt;
9771 elf32_arm_new_section_hook (bfd *abfd, asection *sec)
9773 if (!sec->used_by_bfd)
9781 sec->used_by_bfd = sdata;
9784 record_section_with_arm_elf_section_data (sec);
9786 return _bfd_elf_new_section_hook (abfd, sec);
9805 struct bfd_link_info *link_info, asection *sec,
9815 bfd_vma offset = sec->output_section->vma + sec->output_offset;
9821 arm_data = get_arm_elf_section_data (sec);
9915 end = sec->size;
9958 unrecord_section_with_arm_elf_section_data (sec);
9965 asection * sec,
9968 unrecord_section_with_arm_elf_section_data (sec);
10072 asection *sec;
10074 sec = bfd_get_section_by_name (abfd, ".ARM.exidx");
10075 if (sec != NULL && (sec->flags & SEC_LOAD) != 0)
10090 m->sections[0] = sec;
10106 asection *sec;
10108 sec = bfd_get_section_by_name (abfd, ".ARM.exidx");
10109 if (sec != NULL && (sec->flags & SEC_LOAD) != 0)