Lines Matching refs:p
112 Iterator p = this->last_remove_; in remove() local
113 if (p->start_ > start) in remove()
114 p = this->list_.begin(); in remove()
116 for (; p != this->list_.end(); ++p) in remove()
120 if (p->start_ <= start && p->end_ >= end) in remove()
124 if (p->start_ + 3 >= start && p->end_ <= end + 3) in remove()
125 p = this->list_.erase(p); in remove()
127 else if (p->start_ + 3 >= start) in remove()
128 p->start_ = end; in remove()
130 else if (p->end_ <= end + 3) in remove()
131 p->end_ = start; in remove()
136 Free_list_node newnode(p->start_, start); in remove()
137 p->start_ = end; in remove()
138 this->list_.insert(p, newnode); in remove()
141 this->last_remove_ = p; in remove()
174 for (Iterator p = this->list_.begin(); p != this->list_.end(); ++p) in allocate() local
177 off_t start = p->start_ > minoff ? p->start_ : minoff; in allocate()
180 if (end > p->end_ && p->end_ == this->length_ && this->extend_) in allocate()
183 p->end_ = end; in allocate()
185 if (end == p->end_ || (end <= p->end_ - this->min_hole_)) in allocate()
187 if (p->start_ + fuzz >= start && p->end_ <= end + fuzz) in allocate()
188 this->list_.erase(p); in allocate()
189 else if (p->start_ + fuzz >= start) in allocate()
190 p->start_ = end; in allocate()
191 else if (p->end_ <= end + fuzz) in allocate()
192 p->end_ = start; in allocate()
195 Free_list_node newnode(p->start_, start); in allocate()
196 p->start_ = end; in allocate()
197 this->list_.insert(p, newnode); in allocate()
217 for (Iterator p = this->list_.begin(); p != this->list_.end(); ++p) in dump() local
218 gold_info(" %08lx %08lx %08lx", static_cast<long>(p->start_), in dump()
219 static_cast<long>(p->end_), in dump()
220 static_cast<long>(p->end_ - p->start_)); in dump()
301 for(Layout::Section_list::const_iterator p = sections.begin(); in check_output_data_for_reset_values() local
302 p != sections.end(); in check_output_data_for_reset_values()
303 ++p) in check_output_data_for_reset_values()
304 gold_assert((*p)->address_and_file_offset_have_reset_values()); in check_output_data_for_reset_values()
306 for(Layout::Data_list::const_iterator p = special_outputs.begin(); in check_output_data_for_reset_values() local
307 p != special_outputs.end(); in check_output_data_for_reset_values()
308 ++p) in check_output_data_for_reset_values()
309 gold_assert((*p)->address_and_file_offset_have_reset_values()); in check_output_data_for_reset_values()
320 for(Layout::Section_list::const_iterator p = sections.begin(); in read_sections() local
321 p != sections.end(); in read_sections()
322 ++p) in read_sections()
324 Output_section* os = *p; in read_sections()
341 for(Layout::Section_list::const_iterator p = sections.begin(); in verify_sections() local
342 p != sections.end(); in verify_sections()
343 ++p, ++i) in verify_sections()
345 Output_section* os = *p; in verify_sections()
758 for (Section_list::const_iterator p = this->section_list_.begin(); in find_output_section() local
759 p != this->section_list_.end(); in find_output_section()
760 ++p) in find_output_section()
761 if (strcmp((*p)->name(), name) == 0) in find_output_section()
762 return *p; in find_output_section()
773 for (Segment_list::const_iterator p = this->segment_list_.begin(); in find_output_segment() local
774 p != this->segment_list_.end(); in find_output_segment()
775 ++p) in find_output_segment()
776 if (static_cast<elfcpp::PT>((*p)->type()) == type in find_output_segment()
777 && ((*p)->flags() & set) == set in find_output_segment()
778 && ((*p)->flags() & clear) == 0) in find_output_segment()
779 return *p; in find_output_segment()
872 Section_name_map::iterator p = in get_output_section() local
874 if (p != this->section_name_map_.end()) in get_output_section()
875 os = p->second; in get_output_section()
1878 for (Section_list::iterator p = this->section_list_.begin(); in attach_sections_to_segments() local
1879 p != this->section_list_.end(); in attach_sections_to_segments()
1880 ++p) in attach_sections_to_segments()
1881 this->attach_section_to_segment(target, *p); in attach_sections_to_segments()
1935 Segment_list::const_iterator p; in attach_allocated_section_to_segment() local
1938 for (p = this->segment_list_.begin(); in attach_allocated_section_to_segment()
1939 p != this->segment_list_.end(); in attach_allocated_section_to_segment()
1940 ++p) in attach_allocated_section_to_segment()
1942 if ((*p)->type() != elfcpp::PT_LOAD) in attach_allocated_section_to_segment()
1944 if ((*p)->is_unique_segment()) in attach_allocated_section_to_segment()
1947 && ((*p)->flags() & elfcpp::PF_W) != (seg_flags & elfcpp::PF_W)) in attach_allocated_section_to_segment()
1950 && ((*p)->flags() & elfcpp::PF_X) != (seg_flags & elfcpp::PF_X)) in attach_allocated_section_to_segment()
1957 == (*p)->has_any_data_sections()) in attach_allocated_section_to_segment()
1960 if (os->is_large_data_section() && !(*p)->is_large_data_segment()) in attach_allocated_section_to_segment()
1965 if ((*p)->are_addresses_set()) in attach_allocated_section_to_segment()
1968 (*p)->add_initial_output_data(os); in attach_allocated_section_to_segment()
1969 (*p)->update_flags_for_output_section(seg_flags); in attach_allocated_section_to_segment()
1970 (*p)->set_addresses(addr, addr); in attach_allocated_section_to_segment()
1974 (*p)->add_output_section_to_load(this, os, seg_flags); in attach_allocated_section_to_segment()
1979 if (p == this->segment_list_.end() in attach_allocated_section_to_segment()
2004 for (p = this->segment_list_.begin(); in attach_allocated_section_to_segment()
2005 p != segment_list_.end(); in attach_allocated_section_to_segment()
2006 ++p) in attach_allocated_section_to_segment()
2008 if ((*p)->type() == elfcpp::PT_NOTE in attach_allocated_section_to_segment()
2009 && (((*p)->flags() & elfcpp::PF_W) in attach_allocated_section_to_segment()
2012 (*p)->add_output_section_to_nonload(os, seg_flags); in attach_allocated_section_to_segment()
2017 if (p == this->segment_list_.end()) in attach_allocated_section_to_segment()
2183 for (Section_list::const_iterator p = this->section_list_.begin(); in define_section_symbols() local
2184 p != this->section_list_.end(); in define_section_symbols()
2185 ++p) in define_section_symbols()
2187 const char* const name = (*p)->name(); in define_section_symbols()
2199 *p, in define_section_symbols()
2212 *p, in define_section_symbols()
2230 for (Group_signatures::iterator p = this->group_signatures_.begin(); in define_group_signatures() local
2231 p != this->group_signatures_.end(); in define_group_signatures()
2232 ++p) in define_group_signatures()
2234 Symbol* sym = symtab->lookup(p->signature, NULL); in define_group_signatures()
2236 p->section->set_info_symndx(sym); in define_group_signatures()
2242 if (strcmp(p->section->name(), p->signature) != 0) in define_group_signatures()
2244 const char* name = this->namepool_.add(p->signature, in define_group_signatures()
2246 p->section->set_name(name); in define_group_signatures()
2248 p->section->set_needs_symtab_index(); in define_group_signatures()
2249 p->section->set_info_section_symndx(p->section); in define_group_signatures()
2263 for (Segment_list::const_iterator p = this->segment_list_.begin(); in find_first_load_seg() local
2264 p != this->segment_list_.end(); in find_first_load_seg()
2265 ++p) in find_first_load_seg()
2267 if ((*p)->type() == elfcpp::PT_LOAD in find_first_load_seg()
2268 && ((*p)->flags() & elfcpp::PF_R) != 0 in find_first_load_seg()
2270 || ((*p)->flags() & elfcpp::PF_W) == 0) in find_first_load_seg()
2272 || ((*p)->flags() & elfcpp::PF_X) == 0)) in find_first_load_seg()
2274 if (best == NULL || this->segment_precedes(*p, best)) in find_first_load_seg()
2275 best = *p; in find_first_load_seg()
2294 for (Segment_list::const_iterator p = this->segment_list_.begin(); in save_segments() local
2295 p != this->segment_list_.end(); in save_segments()
2296 ++p) in save_segments()
2298 Output_segment* segment = *p; in save_segments()
2356 for (Section_list::iterator p = this->section_list_.begin(); in clean_up_after_relaxation() local
2357 p != this->section_list_.end(); in clean_up_after_relaxation()
2358 ++p) in clean_up_after_relaxation()
2360 (*p)->restore_states(); in clean_up_after_relaxation()
2365 if ((*p)->section_offsets_need_adjustment()) in clean_up_after_relaxation()
2366 (*p)->adjust_section_offsets(); in clean_up_after_relaxation()
2368 (*p)->reset_address_and_file_offset(); in clean_up_after_relaxation()
2372 for (Data_list::iterator p = this->special_output_list_.begin(); in clean_up_after_relaxation() local
2373 p != this->special_output_list_.end(); in clean_up_after_relaxation()
2374 ++p) in clean_up_after_relaxation()
2375 (*p)->reset_address_and_file_offset(); in clean_up_after_relaxation()
2379 for (Output_section_data_list::const_iterator p = in clean_up_after_relaxation() local
2381 p != this->script_output_section_data_list_.end(); in clean_up_after_relaxation()
2382 ++p) in clean_up_after_relaxation()
2383 delete *p; in clean_up_after_relaxation()
2394 for (Data_list::const_iterator p = this->relax_output_list_.begin(); in reset_relax_output() local
2395 p != this->relax_output_list_.end(); in reset_relax_output()
2396 ++p) in reset_relax_output()
2397 delete *p; in reset_relax_output()
2414 for(Section_list::const_iterator p = this->section_list_.begin(); in prepare_for_relaxation() local
2415 p != this->section_list_.end(); in prepare_for_relaxation()
2416 ++p) in prepare_for_relaxation()
2417 (*p)->save_states(); in prepare_for_relaxation()
2785 Segment_list::const_iterator p; in finalize() local
2788 for (p = this->segment_list_.begin(); in finalize()
2789 p != this->segment_list_.end(); in finalize()
2790 ++p) in finalize()
2794 && (*p)->type() == elfcpp::PT_LOAD in finalize()
2795 && ((*p)->flags() & elfcpp::PF_X) != 0 in finalize()
2796 && ((*p)->flags() & elfcpp::PF_R) != 0) in finalize()
2798 re_vaddr = (*p)->vaddr(); in finalize()
2799 re_memsz = (*p)->memsz(); in finalize()
2802 if ((*p)->type() == elfcpp::PT_LOAD in finalize()
2803 && ((*p)->flags() & elfcpp::PF_W) != 0 in finalize()
2804 && ((*p)->flags() & elfcpp::PF_R) != 0) in finalize()
2806 rw_vaddr = (*p)->vaddr(); in finalize()
2807 rw_memsz = (*p)->memsz(); in finalize()
3146 const char* p = style + 2; in create_build_id() local
3147 while (*p != '\0') in create_build_id()
3149 if (hex_p(p[0]) && hex_p(p[1])) in create_build_id()
3151 char c = (hex_value(p[0]) << 4) | hex_value(p[1]); in create_build_id()
3153 p += 2; in create_build_id()
3155 else if (*p == '-' || *p == ':') in create_build_id()
3156 ++p; in create_build_id()
3209 for (Section_list::iterator p = this->section_list_.begin(); in link_stabs_sections() local
3210 p != this->section_list_.end(); in link_stabs_sections()
3211 ++p) in link_stabs_sections()
3213 if ((*p)->type() != elfcpp::SHT_STRTAB) in link_stabs_sections()
3216 const char* name = (*p)->name(); in link_stabs_sections()
3228 stab_sec->set_link_section(*p); in link_stabs_sections()
3502 for (Data_list::iterator p = this->special_output_list_.begin(); in set_segment_offsets() local
3503 p != this->special_output_list_.end(); in set_segment_offsets()
3504 ++p) in set_segment_offsets()
3506 off = align_address(off, (*p)->addralign()); in set_segment_offsets()
3507 (*p)->set_address_and_file_offset(0, off); in set_segment_offsets()
3508 off += (*p)->data_size(); in set_segment_offsets()
3522 for (Segment_list::iterator p = this->segment_list_.begin(); in set_segment_offsets() local
3523 p != this->segment_list_.end(); in set_segment_offsets()
3524 ++p) in set_segment_offsets()
3526 if ((*p)->type() == elfcpp::PT_LOAD) in set_segment_offsets()
3534 if (load_seg == *p) in set_segment_offsets()
3548 if (load_seg != NULL && load_seg != *p) in set_segment_offsets()
3553 bool are_addresses_set = (*p)->are_addresses_set(); in set_segment_offsets()
3558 addr = (*p)->paddr(); in set_segment_offsets()
3562 || is_text_segment(target, *p))) in set_segment_offsets()
3567 && ((*p)->flags() & (elfcpp::PF_W | elfcpp::PF_X)) == 0) in set_segment_offsets()
3573 && ((*p)->flags() & elfcpp::PF_W) != 0 in set_segment_offsets()
3575 || (*p)->has_any_data_sections())) in set_segment_offsets()
3581 && ((*p)->flags() & elfcpp::PF_W) != 0 in set_segment_offsets()
3582 && !(*p)->has_any_data_sections()) in set_segment_offsets()
3597 (*p)->set_minimum_p_align(abi_pagesize); in set_segment_offsets()
3607 uint64_t max_align = (*p)->maximum_alignment(); in set_segment_offsets()
3612 if (load_seg == *p) in set_segment_offsets()
3649 (*p)->maximum_alignment())); in set_segment_offsets()
3662 off = align_address(off, (*p)->maximum_alignment()); in set_segment_offsets()
3667 uint64_t new_addr = (*p)->set_section_addresses(target, this, in set_segment_offsets()
3698 addr = align_address(addr, (*p)->maximum_alignment()); in set_segment_offsets()
3709 new_addr = (*p)->set_section_addresses(target, this, in set_segment_offsets()
3723 gold_assert(last_load_segment->paddr() <= (*p)->paddr()); in set_segment_offsets()
3725 > (*p)->paddr()) in set_segment_offsets()
3729 unsigned long long lb2 = (*p)->paddr(); in set_segment_offsets()
3730 unsigned long long le2 = lb2 + (*p)->memsz(); in set_segment_offsets()
3736 last_load_segment = *p; in set_segment_offsets()
3748 for (Segment_list::iterator p = this->segment_list_.begin(); in set_segment_offsets() local
3749 *p != load_seg; in set_segment_offsets()
3750 ++p) in set_segment_offsets()
3752 if ((*p)->type() == elfcpp::PT_LOAD) in set_segment_offsets()
3759 const uint64_t old_addr = (*p)->vaddr(); in set_segment_offsets()
3760 const uint64_t old_end = old_addr + (*p)->memsz(); in set_segment_offsets()
3761 uint64_t new_addr = (*p)->set_section_addresses(target, this, in set_segment_offsets()
3776 for (Segment_list::iterator p = this->segment_list_.begin(); in set_segment_offsets() local
3777 p != this->segment_list_.end(); in set_segment_offsets()
3778 ++p) in set_segment_offsets()
3780 if ((*p)->type() != elfcpp::PT_LOAD) in set_segment_offsets()
3781 (*p)->set_offset((*p)->type() == elfcpp::PT_GNU_RELRO in set_segment_offsets()
3806 for (Section_list::iterator p = this->section_list_.begin(); in set_relocatable_section_offsets() local
3807 p != this->section_list_.end(); in set_relocatable_section_offsets()
3808 ++p) in set_relocatable_section_offsets()
3812 if (((*p)->flags() & elfcpp::SHF_ALLOC) == 0 in set_relocatable_section_offsets()
3813 && (*p)->type() != elfcpp::SHT_GROUP) in set_relocatable_section_offsets()
3816 off = align_address(off, (*p)->addralign()); in set_relocatable_section_offsets()
3819 if (!(*p)->is_address_valid()) in set_relocatable_section_offsets()
3820 (*p)->set_address(0); in set_relocatable_section_offsets()
3821 (*p)->set_file_offset(off); in set_relocatable_section_offsets()
3822 (*p)->finalize_data_size(); in set_relocatable_section_offsets()
3823 if ((*p)->type() != elfcpp::SHT_NOBITS) in set_relocatable_section_offsets()
3824 off += (*p)->data_size(); in set_relocatable_section_offsets()
3826 (*p)->set_out_shndx(*pshndx); in set_relocatable_section_offsets()
3842 for (Section_list::iterator p = this->unattached_section_list_.begin(); in set_section_offsets() local
3843 p != this->unattached_section_list_.end(); in set_section_offsets()
3844 ++p) in set_section_offsets()
3847 if (*p == this->symtab_section_) in set_section_offsets()
3851 if ((*p)->is_offset_valid() && (*p)->is_data_size_valid()) in set_section_offsets()
3855 && (*p)->requires_postprocessing()) in set_section_offsets()
3857 (*p)->create_postprocessing_buffer(); in set_section_offsets()
3862 && (*p)->after_input_sections()) in set_section_offsets()
3865 && (!(*p)->after_input_sections() in set_section_offsets()
3866 || (*p)->type() == elfcpp::SHT_STRTAB)) in set_section_offsets()
3869 && (!(*p)->after_input_sections() in set_section_offsets()
3870 || (*p)->type() != elfcpp::SHT_STRTAB)) in set_section_offsets()
3875 off = align_address(off, (*p)->addralign()); in set_section_offsets()
3876 (*p)->set_file_offset(off); in set_section_offsets()
3877 (*p)->finalize_data_size(); in set_section_offsets()
3882 (*p)->pre_finalize_data_size(); in set_section_offsets()
3883 off_t current_size = (*p)->current_data_size(); in set_section_offsets()
3884 off = this->allocate(current_size, (*p)->addralign(), startoff); in set_section_offsets()
3889 gold_assert((*p)->output_section() != NULL); in set_section_offsets()
3892 (*p)->output_section()->name()); in set_section_offsets()
3894 (*p)->set_file_offset(off); in set_section_offsets()
3895 (*p)->finalize_data_size(); in set_section_offsets()
3896 if ((*p)->data_size() > current_size) in set_section_offsets()
3898 gold_assert((*p)->output_section() != NULL); in set_section_offsets()
3901 (*p)->output_section()->name()); in set_section_offsets()
3906 static_cast<long>((*p)->data_size()), in set_section_offsets()
3907 ((*p)->output_section() != NULL in set_section_offsets()
3908 ? (*p)->output_section()->name() : "(special)")); in set_section_offsets()
3911 off += (*p)->data_size(); in set_section_offsets()
3917 this->namepool_.add((*p)->name(), false, NULL); in set_section_offsets()
3928 for (Section_list::iterator p = this->unattached_section_list_.begin(); in set_section_indexes() local
3929 p != this->unattached_section_list_.end(); in set_section_indexes()
3930 ++p) in set_section_indexes()
3932 if (!(*p)->has_out_shndx()) in set_section_indexes()
3934 (*p)->set_out_shndx(shndx); in set_section_indexes()
3964 for (Section_list::iterator p = this->section_list_.begin(); in place_orphan_sections_in_script() local
3965 p != this->section_list_.end(); in place_orphan_sections_in_script()
3966 ++p) in place_orphan_sections_in_script()
3968 if (!(*p)->found_in_sections_clause()) in place_orphan_sections_in_script()
3969 ss->place_orphan(*p); in place_orphan_sections_in_script()
3984 for (Input_objects::Relobj_iterator p = input_objects->relobj_begin(); in count_local_symbols() local
3985 p != input_objects->relobj_end(); in count_local_symbols()
3986 ++p) in count_local_symbols()
3987 symbol_count += (*p)->local_symbol_count(); in count_local_symbols()
3999 for (Input_objects::Relobj_iterator p = input_objects->relobj_begin(); in count_local_symbols() local
4000 p != input_objects->relobj_end(); in count_local_symbols()
4001 ++p) in count_local_symbols()
4003 Task_lock_obj<Object> tlo(task, *p); in count_local_symbols()
4004 (*p)->count_local_symbols(&this->sympool_, &this->dynpool_); in count_local_symbols()
4042 for (Section_list::iterator p = this->section_list_.begin(); in create_symtab_sections() local
4043 p != this->section_list_.end(); in create_symtab_sections()
4044 ++p) in create_symtab_sections()
4046 if (!(*p)->needs_symtab_index()) in create_symtab_sections()
4047 (*p)->set_symtab_index(-1U); in create_symtab_sections()
4050 (*p)->set_symtab_index(local_symbol_index); in create_symtab_sections()
4056 for (Input_objects::Relobj_iterator p = input_objects->relobj_begin(); in create_symtab_sections() local
4057 p != input_objects->relobj_end(); in create_symtab_sections()
4058 ++p) in create_symtab_sections()
4060 unsigned int index = (*p)->finalize_local_symbols(local_symbol_index, in create_symtab_sections()
4247 for (Segment_list::const_iterator p = this->segment_list_.begin(); in allocated_output_section_count() local
4248 p != this->segment_list_.end(); in allocated_output_section_count()
4249 ++p) in allocated_output_section_count()
4250 section_count += (*p)->output_section_count(); in allocated_output_section_count()
4271 for (Section_list::iterator p = this->section_list_.begin(); in create_dynamic_symtab() local
4272 p != this->section_list_.end(); in create_dynamic_symtab()
4273 ++p) in create_dynamic_symtab()
4275 if (!(*p)->needs_dynsym_index()) in create_dynamic_symtab()
4276 (*p)->set_dynsym_index(-1U); in create_dynamic_symtab()
4279 (*p)->set_dynsym_index(index); in create_dynamic_symtab()
4286 for (Input_objects::Relobj_iterator p = input_objects->relobj_begin(); in create_dynamic_symtab() local
4287 p != input_objects->relobj_end(); in create_dynamic_symtab()
4288 ++p) in create_dynamic_symtab()
4290 unsigned int new_index = (*p)->set_local_dynsym_indexes(index); in create_dynamic_symtab()
4493 for (Input_objects::Relobj_iterator p = input_objects->relobj_begin(); in assign_local_dynsym_offsets() local
4494 p != input_objects->relobj_end(); in assign_local_dynsym_offsets()
4495 ++p) in assign_local_dynsym_offsets()
4497 unsigned int count = (*p)->set_local_dynsym_offset(off); in assign_local_dynsym_offsets()
4806 for (Input_objects::Dynobj_iterator p = input_objects->dynobj_begin(); in finish_dynamic_section() local
4807 p != input_objects->dynobj_end(); in finish_dynamic_section()
4808 ++p) in finish_dynamic_section()
4810 if (!(*p)->is_needed() && (*p)->as_needed()) in finish_dynamic_section()
4817 odyn->add_string(elfcpp::DT_NEEDED, (*p)->soname()); in finish_dynamic_section()
4837 for(Layout::Section_list::const_iterator p = this->section_list_.begin(); in finish_dynamic_section() local
4838 p != this->section_list_.end(); in finish_dynamic_section()
4839 ++p) in finish_dynamic_section()
4840 switch((*p)->type()) in finish_dynamic_section()
4843 odyn->add_section_address(elfcpp::DT_FINI_ARRAY, *p); in finish_dynamic_section()
4844 odyn->add_section_size(elfcpp::DT_FINI_ARRAYSZ, *p); in finish_dynamic_section()
4847 odyn->add_section_address(elfcpp::DT_INIT_ARRAY, *p); in finish_dynamic_section()
4848 odyn->add_section_size(elfcpp::DT_INIT_ARRAYSZ, *p); in finish_dynamic_section()
4851 odyn->add_section_address(elfcpp::DT_PREINIT_ARRAY, *p); in finish_dynamic_section()
4852 odyn->add_section_size(elfcpp::DT_PREINIT_ARRAYSZ, *p); in finish_dynamic_section()
4863 for (General_options::Dir_list::const_iterator p = rpath.begin(); in finish_dynamic_section() local
4864 p != rpath.end(); in finish_dynamic_section()
4865 ++p) in finish_dynamic_section()
4868 rpath_val = p->name(); in finish_dynamic_section()
4873 for (q = rpath.begin(); q != p; ++q) in finish_dynamic_section()
4874 if (q->name() == p->name()) in finish_dynamic_section()
4876 if (q == p) in finish_dynamic_section()
4879 rpath_val += p->name(); in finish_dynamic_section()
4894 for (Segment_list::const_iterator p = this->segment_list_.begin(); in finish_dynamic_section() local
4895 p != this->segment_list_.end(); in finish_dynamic_section()
4896 ++p) in finish_dynamic_section()
4898 if ((*p)->type() == elfcpp::PT_LOAD in finish_dynamic_section()
4899 && ((*p)->flags() & elfcpp::PF_W) == 0 in finish_dynamic_section()
4900 && (*p)->has_dynamic_reloc()) in finish_dynamic_section()
4913 for (Section_list::const_iterator p = this->section_list_.begin(); in finish_dynamic_section() local
4914 p != this->section_list_.end(); in finish_dynamic_section()
4915 ++p) in finish_dynamic_section()
4917 if (((*p)->flags() & elfcpp::SHF_ALLOC) != 0 in finish_dynamic_section()
4918 && ((*p)->flags() & elfcpp::SHF_WRITE) == 0 in finish_dynamic_section()
4919 && (*p)->has_dynamic_reloc()) in finish_dynamic_section()
4931 for (options::String_set::const_iterator p = in finish_dynamic_section() local
4933 p != parameters->options().auxiliary_end(); in finish_dynamic_section()
4934 ++p) in finish_dynamic_section()
4935 odyn->add_string(elfcpp::DT_AUXILIARY, *p); in finish_dynamic_section()
5285 for (Section_list::const_iterator p = this->section_list_.begin(); in get_allocated_sections() local
5286 p != this->section_list_.end(); in get_allocated_sections()
5287 ++p) in get_allocated_sections()
5288 if (((*p)->flags() & elfcpp::SHF_ALLOC) != 0) in get_allocated_sections()
5289 section_list->push_back(*p); in get_allocated_sections()
5297 for (Section_list::const_iterator p = this->section_list_.begin(); in get_executable_sections() local
5298 p != this->section_list_.end(); in get_executable_sections()
5299 ++p) in get_executable_sections()
5300 if (((*p)->flags() & (elfcpp::SHF_ALLOC | elfcpp::SHF_EXECINSTR)) in get_executable_sections()
5302 section_list->push_back(*p); in get_executable_sections()
5352 for (Section_list::const_iterator p = this->section_list_.begin(); in write_output_sections() local
5353 p != this->section_list_.end(); in write_output_sections()
5354 ++p) in write_output_sections()
5356 if (!(*p)->after_input_sections()) in write_output_sections()
5357 (*p)->write(of); in write_output_sections()
5369 for (Section_list::const_iterator p = this->section_list_.begin(); in write_data() local
5370 p != this->section_list_.end(); in write_data()
5371 ++p) in write_data()
5373 if ((*p)->needs_symtab_index()) in write_data()
5376 unsigned int index = (*p)->symtab_index(); in write_data()
5380 symtab->write_section_symbol(*p, this->symtab_xindex_, of, off); in write_data()
5386 for (Section_list::const_iterator p = this->section_list_.begin(); in write_data() local
5387 p != this->section_list_.end(); in write_data()
5388 ++p) in write_data()
5390 if ((*p)->needs_dynsym_index()) in write_data()
5393 unsigned int index = (*p)->dynsym_index(); in write_data()
5397 symtab->write_section_symbol(*p, this->dynsym_xindex_, of, off); in write_data()
5402 for (Data_list::const_iterator p = this->special_output_list_.begin(); in write_data() local
5403 p != this->special_output_list_.end(); in write_data()
5404 ++p) in write_data()
5405 (*p)->write(of); in write_data()
5409 for (Data_list::const_iterator p = this->relax_output_list_.begin(); in write_data() local
5410 p != this->relax_output_list_.end(); in write_data()
5411 ++p) in write_data()
5412 (*p)->write(of); in write_data()
5442 for (Section_list::const_iterator p = this->section_list_.begin(); in write_sections_after_input_sections() local
5443 p != this->section_list_.end(); in write_sections_after_input_sections()
5444 ++p) in write_sections_after_input_sections()
5446 if ((*p)->after_input_sections()) in write_sections_after_input_sections()
5447 (*p)->write(of); in write_sections_after_input_sections()
5557 for (Segment_list::const_iterator p = this->segment_list_.begin(); in write_binary() local
5558 p != this->segment_list_.end(); in write_binary()
5559 ++p) in write_binary()
5561 if ((*p)->type() == elfcpp::PT_LOAD && (*p)->filesz() > 0) in write_binary()
5563 uint64_t max_paddr = (*p)->paddr() + (*p)->filesz(); in write_binary()
5572 for (Segment_list::const_iterator p = this->segment_list_.begin(); in write_binary() local
5573 p != this->segment_list_.end(); in write_binary()
5574 ++p) in write_binary()
5576 if ((*p)->type() == elfcpp::PT_LOAD && (*p)->filesz() > 0) in write_binary()
5578 const unsigned char* vin = in->get_input_view((*p)->offset(), in write_binary()
5579 (*p)->filesz()); in write_binary()
5580 unsigned char* vout = out.get_output_view((*p)->paddr(), in write_binary()
5581 (*p)->filesz()); in write_binary()
5582 memcpy(vout, vin, (*p)->filesz()); in write_binary()
5583 out.write_output_view((*p)->paddr(), (*p)->filesz(), vout); in write_binary()
5584 in->free_input_view((*p)->offset(), (*p)->filesz(), vin); in write_binary()
5596 for (Segment_list::const_iterator p = this->segment_list_.begin(); in print_to_mapfile() local
5597 p != this->segment_list_.end(); in print_to_mapfile()
5598 ++p) in print_to_mapfile()
5599 (*p)->print_sections_to_mapfile(mapfile); in print_to_mapfile()
5600 for (Section_list::const_iterator p = this->unattached_section_list_.begin(); in print_to_mapfile() local
5601 p != this->unattached_section_list_.end(); in print_to_mapfile()
5602 ++p) in print_to_mapfile()
5603 (*p)->print_to_mapfile(mapfile); in print_to_mapfile()
5615 for (Section_list::const_iterator p = this->section_list_.begin(); in print_stats() local
5616 p != this->section_list_.end(); in print_stats()
5617 ++p) in print_stats()
5618 (*p)->print_merge_stats(); in print_stats()