Home | History | Annotate | Download | only in src

Lines Matching defs:elf_header

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