Lines Matching refs:data
54 Elf_Data* data = elf_getdata(section, NULL); in GetSectionData() local
55 CHECK(data && elf_getdata(section, data) == NULL); in GetSectionData()
56 return data; in GetSectionData()
64 Elf_Data* data = GetSectionData(section); in RewriteSectionData() local
65 CHECK(size == data->d_size); in RewriteSectionData()
68 data->d_buf = area; in RewriteSectionData()
122 static void VerboseLogSectionData(const Elf_Data* data) { in VerboseLogSectionData() argument
124 VLOG(1) << " d_buf = " << data->d_buf; in VerboseLogSectionData()
125 VLOG(1) << " d_off = " << data->d_off; in VerboseLogSectionData()
126 VLOG(1) << " d_size = " << data->d_size; in VerboseLogSectionData()
127 VLOG(1) << " d_align = " << data->d_align; in VerboseLogSectionData()
229 Elf_Data* data = NULL; in Load() local
230 while ((data = elf_getdata(section, data)) != NULL) { in Load()
231 CHECK(data->d_align <= kPreserveAlignment); in Load()
232 VerboseLogSectionData(data); in Load()
507 Elf_Data* data = GetSectionData(dynamic_section); in AdjustDynamicSectionForHole() local
509 auto dynamic_base = reinterpret_cast<typename ELF::Dyn*>(data->d_buf); in AdjustDynamicSectionForHole()
512 dynamic_base + data->d_size / sizeof(dynamics[0])); in AdjustDynamicSectionForHole()
595 Elf_Data* data = GetSectionData(section); in ResizeSection() local
596 CHECK(data->d_off == 0 && data->d_size == section_header->sh_size); in ResizeSection()
600 CHECK(data->d_size && data->d_buf); in ResizeSection()
603 const ssize_t hole_size = new_size - data->d_size; in ResizeSection()
606 data->d_size << " -> " << (data->d_size + hole_size); in ResizeSection()
608 data->d_size << " -> " << (data->d_size + hole_size); in ResizeSection()
619 data->d_size += hole_size; in ResizeSection()
686 Elf_Data* data = GetSectionData(relocations_section_); in PackRelocations() local
692 const typename ELF::Rel* relocations_base = reinterpret_cast<typename ELF::Rel*>(data->d_buf); in PackRelocations()
694 data->d_size / sizeof(typename ELF::Rel), &relocations); in PackRelocations()
698 const typename ELF::Rela* relocations_base = reinterpret_cast<typename ELF::Rela*>(data->d_buf); in PackRelocations()
701 relocations_base + data->d_size / sizeof(relocations[0])); in PackRelocations()
796 Elf_Data* data = GetSectionData(dynamic_section_); in PackTypedRelocations() local
797 const typename ELF::Dyn* dynamic_base = reinterpret_cast<typename ELF::Dyn*>(data->d_buf); in PackTypedRelocations()
800 dynamic_base + data->d_size / sizeof(dynamics[0])); in PackTypedRelocations()
836 Elf_Data* data = GetSectionData(relocations_section_); in UnpackRelocations() local
839 const uint8_t* packed_base = reinterpret_cast<uint8_t*>(data->d_buf); in UnpackRelocations()
842 packed_base + data->d_size / sizeof(packed[0])); in UnpackRelocations()
875 Elf_Data* data = GetSectionData(relocations_section_); in UnpackTypedRelocations() local
911 data = GetSectionData(dynamic_section_); in UnpackTypedRelocations()
912 const typename ELF::Dyn* dynamic_base = reinterpret_cast<typename ELF::Dyn*>(data->d_buf); in UnpackTypedRelocations()
915 dynamic_base + data->d_size / sizeof(dynamics[0])); in UnpackTypedRelocations()