Lines Matching refs:p

198       for (typename Fde_addresses<size>::iterator p = fde_addresses.begin();  in do_sized_write()  local
199 p != fde_addresses.end(); in do_sized_write()
200 ++p) in do_sized_write()
203 p->first - output_address); in do_sized_write()
205 p->second - output_address); in do_sized_write()
230 const unsigned char* p = eh_frame_contents + fde_offset + 8; in get_fde_pc() local
248 pc = elfcpp::Swap<16, big_endian>::readval(p); in get_fde_pc()
254 pc = elfcpp::Swap<32, big_endian>::readval(p); in get_fde_pc()
261 pc = elfcpp::Swap_unaligned<64, big_endian>::readval(p); in get_fde_pc()
312 for (Fde_offsets::const_iterator p = fde_offsets->begin(); in get_fde_addresses() local
313 p != fde_offsets->end(); in get_fde_addresses()
314 ++p) in get_fde_addresses()
319 p->first, p->second); in get_fde_addresses()
320 fde_addresses->push_back(fde_pc, eh_frame_address + p->first); in get_fde_addresses()
404 for (std::vector<Fde*>::iterator p = this->fdes_.begin(); in ~Cie() local
405 p != this->fdes_.end(); in ~Cie()
406 ++p) in ~Cie()
407 delete *p; in ~Cie()
431 for (std::vector<Fde*>::const_iterator p = this->fdes_.begin(); in set_output_offset() local
432 p != this->fdes_.end(); in set_output_offset()
433 ++p) in set_output_offset()
435 (*p)->add_mapping(output_offset + length, merge_map); in set_output_offset()
437 size_t fde_length = (*p)->length(); in set_output_offset()
487 for (std::vector<Fde*>::const_iterator p = this->fdes_.begin(); in write() local
488 p != this->fdes_.end(); in write()
489 ++p) in write()
491 if ((*p)->post_map()) in write()
492 post_fdes->push_back(Post_fde(*p, cie_offset, fde_encoding)); in write()
494 offset = (*p)->write<size, big_endian>(oview, output_offset, offset, in write()
546 const unsigned char* p; in skip_leb128() local
547 for (p = *pp; p < pend; ++p) in skip_leb128()
549 if ((*p & 0x80) == 0) in skip_leb128()
551 *pp = p + 1; in skip_leb128()
607 for (New_cies::iterator p = new_cies.begin(); in add_ehframe_input_section() local
608 p != new_cies.end(); in add_ehframe_input_section()
609 ++p) in add_ehframe_input_section()
610 delete p->first; in add_ehframe_input_section()
617 for (New_cies::const_iterator p = new_cies.begin(); in add_ehframe_input_section() local
618 p != new_cies.end(); in add_ehframe_input_section()
619 ++p) in add_ehframe_input_section()
621 if (p->second) in add_ehframe_input_section()
622 this->cie_offsets_.insert(p->first); in add_ehframe_input_section()
624 this->unmergeable_cie_offsets_.push_back(p->first); in add_ehframe_input_section()
649 const unsigned char* p = pcontents; in do_add_ehframe_input_section() local
650 const unsigned char* pend = p + contents_len; in do_add_ehframe_input_section()
659 while (p < pend) in do_add_ehframe_input_section()
661 if (pend - p < 4) in do_add_ehframe_input_section()
665 if (relocs.advance(p + 4 - pcontents) > 0) in do_add_ehframe_input_section()
668 unsigned int len = elfcpp::Swap<32, big_endian>::readval(p); in do_add_ehframe_input_section()
669 p += 4; in do_add_ehframe_input_section()
674 if (p < pend) in do_add_ehframe_input_section()
681 if (static_cast<unsigned int>(pend - p) < len) in do_add_ehframe_input_section()
684 const unsigned char* const pentend = p + len; in do_add_ehframe_input_section()
686 if (pend - p < 4) in do_add_ehframe_input_section()
688 if (relocs.advance(p + 4 - pcontents) > 0) in do_add_ehframe_input_section()
691 unsigned int id = elfcpp::Swap<32, big_endian>::readval(p); in do_add_ehframe_input_section()
692 p += 4; in do_add_ehframe_input_section()
699 pcontents, p, pentend, &relocs, &cies, in do_add_ehframe_input_section()
707 pcontents, id, p, pentend, &relocs, &cies)) in do_add_ehframe_input_section()
711 p = pentend; in do_add_ehframe_input_section()
741 const unsigned char* p = pcie; in read_cie() local
743 if (pcieend - p < 1) in read_cie()
745 unsigned char version = *p++; in read_cie()
749 const unsigned char* paug = p; in read_cie()
750 const void* paugendv = memchr(p, '\0', pcieend - p); in read_cie()
754 p = paugend + 1; in read_cie()
764 if (pcieend - p < size / 8) in read_cie()
766 p += size / 8; in read_cie()
770 if (!skip_leb128(&p, pcieend)) in read_cie()
774 if (!skip_leb128(&p, pcieend)) in read_cie()
780 if (pcieend - p < 1) in read_cie()
782 ++p; in read_cie()
786 if (!skip_leb128(&p, pcieend)) in read_cie()
794 if (!skip_leb128(&p, pcieend)) in read_cie()
805 if (pcieend - p < 1) in read_cie()
807 ++p; in read_cie()
811 if (pcieend - p < 1) in read_cie()
813 fde_encoding = *p; in read_cie()
826 ++p; in read_cie()
835 if (pcieend - p < 1) in read_cie()
837 unsigned char per_encoding = *p; in read_cie()
838 ++p; in read_cie()
863 unsigned int len = p - pcie; in read_cie()
866 if (static_cast<unsigned int>(pcieend - p) < len) in read_cie()
868 p += len; in read_cie()
871 per_offset = p - pcontents; in read_cie()
873 if (static_cast<unsigned int>(pcieend - p) < per_width) in read_cie()
875 p += per_width; in read_cie()
1073 for (Unmergeable_cie_offsets::const_iterator p = in fde_count() local
1075 p != this->unmergeable_cie_offsets_.end(); in fde_count()
1076 ++p) in fde_count()
1077 ret += (*p)->fde_count(); in fde_count()
1078 for (Cie_offsets::const_iterator p = this->cie_offsets_.begin(); in fde_count() local
1079 p != this->cie_offsets_.end(); in fde_count()
1080 ++p) in fde_count()
1081 ret += (*p)->fde_count(); in fde_count()
1104 for (Unmergeable_cie_offsets::iterator p = in set_final_data_size() local
1106 p != this->unmergeable_cie_offsets_.end(); in set_final_data_size()
1107 ++p) in set_final_data_size()
1108 output_offset = (*p)->set_output_offset(output_offset, in set_final_data_size()
1112 for (Cie_offsets::iterator p = this->cie_offsets_.begin(); in set_final_data_size() local
1113 p != this->cie_offsets_.end(); in set_final_data_size()
1114 ++p) in set_final_data_size()
1115 output_offset = (*p)->set_output_offset(output_offset, in set_final_data_size()
1194 for (Unmergeable_cie_offsets::iterator p = in do_sized_write() local
1196 p != this->unmergeable_cie_offsets_.end(); in do_sized_write()
1197 ++p) in do_sized_write()
1198 o = (*p)->write<size, big_endian>(oview, output_offset, o, address, in do_sized_write()
1201 for (Cie_offsets::iterator p = this->cie_offsets_.begin(); in do_sized_write() local
1202 p != this->cie_offsets_.end(); in do_sized_write()
1203 ++p) in do_sized_write()
1204 o = (*p)->write<size, big_endian>(oview, output_offset, o, address, in do_sized_write()
1207 for (Post_fdes::iterator p = post_fdes.begin(); in do_sized_write() local
1208 p != post_fdes.end(); in do_sized_write()
1209 ++p) in do_sized_write()
1210 o = (*p).fde->write<size, big_endian>(oview, output_offset, o, address, in do_sized_write()
1211 addralign, (*p).cie_offset, in do_sized_write()
1212 (*p).fde_encoding, in do_sized_write()