Lines Matching refs:current
2980 asection *current; local
3067 for (current = abfd->sections; current != NULL; current = current->next)
3068 if (current->reloc_count >= 0xffff || current->lineno_count >= 0xffff)
3087 for (current = abfd->sections; current != NULL; current = current->next)
3097 for (current = abfd->sections; current != NULL; current = current->next)
3099 section_list[i] = current;
3112 current = section_list[i];
3113 current->next = section_list[i + 1];
3120 if (current->_raw_size == 0)
3127 current->target_index = 1;
3130 current->target_index = target_index++;
3132 abfd->section_tail = ¤t->next;
3142 for (current = abfd->sections; current != NULL; current = current->next)
3143 current->target_index = target_index++;
3148 for (current = abfd->sections;
3149 current != (asection *) NULL;
3150 current = current->next)
3155 if (coff_section_data (abfd, current) == NULL)
3158 current->used_by_bfd = (PTR) bfd_zalloc (abfd, amt);
3159 if (current->used_by_bfd == NULL)
3162 if (pei_section_data (abfd, current) == NULL)
3165 coff_section_data (abfd, current)->tdata
3167 if (coff_section_data (abfd, current)->tdata == NULL)
3170 if (pei_section_data (abfd, current)->virt_size == 0)
3171 pei_section_data (abfd, current)->virt_size = current->_raw_size;
3175 if (!(current->flags & SEC_HAS_CONTENTS))
3180 if (current->_raw_size == 0)
3204 if (!strcmp (current->name, _TEXT)
3205 || !strcmp (current->name, _DATA))
3210 sofar = BFD_ALIGN (sofar, 1 << current->alignment_power);
3212 align = 1 << current->alignment_power;
3213 pad = abs (current->vma - sofar) % align;
3224 sofar = BFD_ALIGN (sofar, 1 << current->alignment_power);
3237 && (current->flags & SEC_ALLOC) != 0)
3238 sofar += (current->vma - sofar) % page_size;
3240 current->filepos = sofar;
3244 current->_raw_size = (current->_raw_size + page_size -1) & -page_size;
3247 sofar += current->_raw_size;
3255 old_size = current->_raw_size;
3256 current->_raw_size = BFD_ALIGN (current->_raw_size,
3257 1 << current->alignment_power);
3258 align_adjust = current->_raw_size != old_size;
3259 sofar += current->_raw_size - old_size;
3264 sofar = BFD_ALIGN (sofar, 1 << current->alignment_power);
3266 current->_raw_size += sofar - old_sofar;
3274 if (pei_section_data (abfd, current)->virt_size < current->_raw_size)
3282 if (strcmp (current->name, _LIB) == 0)
3283 bfd_set_section_vma (abfd, current, 0);
3286 previous = current;
3495 asection *current; local
3532 for (current = abfd->sections; current != NULL; current =
3533 current->next)
3537 if (obj_pe (abfd) && current->reloc_count >= 0xffff)
3540 reloc_count += current->reloc_count;
3549 for (current = abfd->sections; current != NULL; current =
3550 current->next)
3552 if (current->lineno_count)
3554 current->line_filepos = lineno_base;
3555 current->moving_line_filepos = lineno_base;
3556 lineno_base += current->lineno_count * bfd_coff_linesz (abfd);
3560 current->line_filepos = 0;
3562 if (current->reloc_count)
3564 current->rel_filepos = reloc_base;
3565 reloc_base += current->reloc_count * bfd_coff_relsz (abfd);
3568 if (obj_pe (abfd) && current->reloc_count >= 0xffff)
3574 current->rel_filepos = 0;
3600 for (current = abfd->sections;
3601 current != NULL;
3602 current = current->next)
3608 if (strcmp (current->name, ".reloc") == 0)
3618 strncpy (section.s_name, current->name, SCNNMLEN);
3626 len = strlen (current->name);
3640 if (strcmp (current->name, _LIB) == 0)
3644 section.s_vaddr = current->vma;
3645 section.s_paddr = current->lma;
3646 section.s_size = current->_raw_size;
3648 section.s_page = coff_get_section_load_page (current);
3656 if (coff_section_data (abfd, current) != NULL
3657 && pei_section_data (abfd, current) != NULL)
3658 section.s_paddr = pei_section_data (abfd, current)->virt_size;
3665 if (current->_raw_size == 0 ||
3666 (current->flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0)
3669 section.s_scnptr = current->filepos;
3671 section.s_relptr = current->rel_filepos;
3672 section.s_lnnoptr = current->line_filepos;
3673 section.s_nreloc = current->reloc_count;
3674 section.s_nlnno = current->lineno_count;
3677 if (current->reloc_count != 0)
3680 if (current->lineno_count != 0)
3682 if ((current->flags & SEC_DEBUGGING) != 0
3689 if (current->reloc_count >= 0xffff || current->lineno_count >= 0xffff)
3697 section.s_flags = sec_to_styp_flags (current->name, current->flags);
3699 if (!strcmp (current->name, _TEXT))
3700 text_sec = current;
3701 else if (!strcmp (current->name, _DATA))
3702 data_sec = current;
3703 else if (!strcmp (current->name, _BSS))
3704 bss_sec = current;
3707 section.s_align = (current->alignment_power
3708 ? 1 << current->alignment_power
3713 section.s_flags |= (current->alignment_power & 0xF) << 8;
3716 COFF_ENCODE_ALIGNMENT(section, current->alignment_power);
3742 if ((current->flags & SEC_LINK_ONCE) != 0)
3753 if ((*psym)->section != current)
3762 if (strcmp ((*psym)->name, current->name) == 0)
3789 switch (current->flags & SEC_LINK_DUPLICATES)
3837 for (current = abfd->sections; current != NULL; current = current->next)
3839 if (current->reloc_count >= 0xffff || current->lineno_count >= 0xffff)
3846 strncpy (&(scnhdr.s_name[0]), current->name, 8);
3847 scnhdr.s_paddr = current->reloc_count;
3848 scnhdr.s_vaddr = current->lineno_count;
3851 scnhdr.s_relptr = current->rel_filepos;
3852 scnhdr.s_lnnoptr = current->line_filepos;
3853 scnhdr.s_nreloc = current->target_index;
3854 scnhdr.s_nlnno = current->target_index;