Lines Matching refs:elf_header
73 static void VerboseLogElfHeader(const Ehdr* elf_header) { in VerboseLogElfHeader() argument
74 VLOG(1) << "e_phoff = " << elf_header->e_phoff; in VerboseLogElfHeader()
75 VLOG(1) << "e_shoff = " << elf_header->e_shoff; in VerboseLogElfHeader()
76 VLOG(1) << "e_ehsize = " << elf_header->e_ehsize; in VerboseLogElfHeader()
77 VLOG(1) << "e_phentsize = " << elf_header->e_phentsize; in VerboseLogElfHeader()
78 VLOG(1) << "e_phnum = " << elf_header->e_phnum; in VerboseLogElfHeader()
79 VLOG(1) << "e_shnum = " << elf_header->e_shnum; in VerboseLogElfHeader()
80 VLOG(1) << "e_shstrndx = " << elf_header->e_shstrndx; in VerboseLogElfHeader()
146 auto elf_header = ELF::getehdr(elf); in Load() local
147 if (!elf_header) { in Load()
152 if (elf_header->e_type != ET_DYN) { in Load()
159 const int endian = elf_header->e_ident[EI_DATA]; in Load()
163 const int file_class = elf_header->e_ident[EI_CLASS]; in Load()
165 VerboseLogElfHeader(elf_header); in Load()
171 for (size_t i = 0; i < elf_header->e_phnum; ++i) { in Load()
267 static void AdjustElfHeaderForHole(typename ELF::Ehdr* elf_header, in AdjustElfHeaderForHole() argument
270 if (elf_header->e_phoff > hole_start) { in AdjustElfHeaderForHole()
271 elf_header->e_phoff += hole_size; in AdjustElfHeaderForHole()
272 VLOG(1) << "e_phoff adjusted to " << elf_header->e_phoff; in AdjustElfHeaderForHole()
274 if (elf_header->e_shoff > hole_start) { in AdjustElfHeaderForHole()
275 elf_header->e_shoff += hole_size; in AdjustElfHeaderForHole()
276 VLOG(1) << "e_shoff adjusted to " << elf_header->e_shoff; in AdjustElfHeaderForHole()
440 const typename ELF::Ehdr* elf_header = ELF::getehdr(elf); in RewriteProgramHeadersForHole() local
441 CHECK(elf_header); in RewriteProgramHeadersForHole()
446 const size_t program_header_count = elf_header->e_phnum; in RewriteProgramHeadersForHole()
468 const typename ELF::Ehdr* elf_header = ELF::getehdr(elf); in GetDynamicSection() local
469 CHECK(elf_header); in GetDynamicSection()
476 for (size_t i = 0; i < elf_header->e_phnum; ++i) { in GetDynamicSection()
629 typename ELF::Ehdr* elf_header = ELF::getehdr(elf); in ResizeSection() local
630 AdjustElfHeaderForHole<ELF>(elf_header, hole_start, hole_size); in ResizeSection()