Lines Matching refs:section_header

112                              const Shdr* section_header) {  in VerboseLogSectionHeader()  argument
114 VLOG(1) << " sh_addr = " << section_header->sh_addr; in VerboseLogSectionHeader()
115 VLOG(1) << " sh_offset = " << section_header->sh_offset; in VerboseLogSectionHeader()
116 VLOG(1) << " sh_size = " << section_header->sh_size; in VerboseLogSectionHeader()
117 VLOG(1) << " sh_entsize = " << section_header->sh_entsize; in VerboseLogSectionHeader()
118 VLOG(1) << " sh_addralign = " << section_header->sh_addralign; in VerboseLogSectionHeader()
199 auto section_header = ELF::getshdr(section); in Load() local
200 std::string name = elf_strptr(elf, string_index, section_header->sh_name); in Load()
201 VerboseLogSectionHeader(name, section_header); in Load()
204 if (section_header->sh_type == SHT_REL || section_header->sh_type == SHT_ANDROID_REL) { in Load()
207 if (section_header->sh_type == SHT_RELA || section_header->sh_type == SHT_ANDROID_RELA) { in Load()
213 section_header->sh_size > 0) { in Load()
218 section_header->sh_type == SHT_ANDROID_REL || in Load()
219 section_header->sh_type == SHT_ANDROID_RELA; in Load()
222 if (section_header->sh_offset == dynamic_program_header->p_offset) { in Load()
227 CHECK(section_header->sh_addralign <= kPreserveAlignment); in Load()
290 auto section_header = ELF::getshdr(section); in AdjustSectionHeadersForHole() local
291 std::string name = elf_strptr(elf, string_index, section_header->sh_name); in AdjustSectionHeadersForHole()
293 if (section_header->sh_offset > hole_start) { in AdjustSectionHeadersForHole()
294 section_header->sh_offset += hole_size; in AdjustSectionHeadersForHole()
296 << " sh_offset adjusted to " << section_header->sh_offset; in AdjustSectionHeadersForHole()
298 section_header->sh_addr -= hole_size; in AdjustSectionHeadersForHole()
300 << " sh_addr adjusted to " << section_header->sh_addr; in AdjustSectionHeadersForHole()
489 typename ELF::Shdr* section_header = ELF::getshdr(section); in GetDynamicSection() local
491 if (section_header->sh_offset == dynamic_program_header->p_offset) { in GetDynamicSection()
586 auto section_header = ELF::getshdr(section); in ResizeSection() local
587 std::string name = elf_strptr(elf, string_index, section_header->sh_name); in ResizeSection()
589 if (section_header->sh_size == new_size) { in ResizeSection()
596 CHECK(data->d_off == 0 && data->d_size == section_header->sh_size); in ResizeSection()
602 const auto hole_start = section_header->sh_offset; in ResizeSection()
616 section_header->sh_entsize << " -> " << new_entsize; in ResizeSection()
620 section_header->sh_size += hole_size; in ResizeSection()
621 section_header->sh_entsize = new_entsize; in ResizeSection()
622 section_header->sh_type = new_sh_type; in ResizeSection()
749 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); in PackTypedRelocations() local
801 section_header = ELF::getshdr(relocations_section_); in PackTypedRelocations()
805 dyn.d_un.d_ptr = section_header->sh_addr; in PackTypedRelocations()
811 dyn.d_un.d_val = section_header->sh_size; in PackTypedRelocations()
834 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); in UnpackRelocations() local
844 if ((section_header->sh_type == SHT_ANDROID_RELA || section_header->sh_type == SHT_ANDROID_REL) && in UnpackRelocations()
887 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); in UnpackTypedRelocations() local
919 dyn.d_un.d_ptr = section_header->sh_addr; in UnpackTypedRelocations()
927 dyn.d_un.d_val = section_header->sh_size; in UnpackTypedRelocations()