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()
416 typename ELF::Shdr* section_header = ELF::getshdr(section); in GetDynamicSection() local
418 if (section_header->sh_offset == dynamic_program_header->p_offset) { in GetDynamicSection()
513 auto section_header = ELF::getshdr(section); in ResizeSection() local
514 std::string name = elf_strptr(elf, string_index, section_header->sh_name); in ResizeSection()
516 if (section_header->sh_size == new_size) { in ResizeSection()
523 CHECK(data->d_off == 0 && data->d_size == section_header->sh_size); in ResizeSection()
529 const auto hole_start = section_header->sh_offset; in ResizeSection()
543 section_header->sh_entsize << " -> " << new_entsize; in ResizeSection()
547 section_header->sh_size += hole_size; in ResizeSection()
548 section_header->sh_entsize = new_entsize; in ResizeSection()
549 section_header->sh_type = new_sh_type; in ResizeSection()
676 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); in PackTypedRelocations() local
728 section_header = ELF::getshdr(relocations_section_); in PackTypedRelocations()
732 dyn.d_un.d_ptr = section_header->sh_addr; in PackTypedRelocations()
738 dyn.d_un.d_val = section_header->sh_size; in PackTypedRelocations()
761 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); in UnpackRelocations() local
771 if ((section_header->sh_type == SHT_ANDROID_RELA || section_header->sh_type == SHT_ANDROID_REL) && in UnpackRelocations()
814 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); in UnpackTypedRelocations() local
846 dyn.d_un.d_ptr = section_header->sh_addr; in UnpackTypedRelocations()
854 dyn.d_un.d_val = section_header->sh_size; in UnpackTypedRelocations()