/external/google-breakpad/src/common/linux/ |
elfutils.cc | 57 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); local 58 assert(elf_header->e_ident[EI_CLASS] == ElfClass::kClass); 61 GetOffset<ElfClass, Shdr>(elf_header, elf_header->e_shoff); 62 const Shdr* section_names = sections + elf_header->e_shstrndx; 64 GetOffset<ElfClass, char>(elf_header, section_names->sh_offset); 70 elf_header->e_shnum); 92 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); local 93 assert(elf_header->e_ident[EI_CLASS] == ElfClass::kClass); 96 GetOffset<ElfClass, Phdr>(elf_header, elf_header->e_phoff) [all...] |
dump_symbols.cc | 177 bool LoadStabs(const typename ElfClass::Ehdr* elf_header, 189 GetOffset<ElfClass, uint8_t>(elf_header, stab_section->sh_offset); 191 GetOffset<ElfClass, uint8_t>(elf_header, stabstr_section->sh_offset); 227 const typename ElfClass::Ehdr* elf_header, 244 GetOffset<ElfClass, Shdr>(elf_header, elf_header->e_shoff); 245 int num_sections = elf_header->e_shnum; 246 const Shdr* section_names = sections + elf_header->e_shstrndx; 249 string name = GetOffset<ElfClass, char>(elf_header, 252 const char* contents = GetOffset<ElfClass, char>(elf_header, 968 void* elf_header = NULL; local [all...] |
/external/google-breakpad/src/common/solaris/ |
file_id.cc | 79 GElf_Ehdr elf_header; local 84 if (gelf_getehdr(elf, &elf_header) == (GElf_Ehdr *)NULL) { 89 if (elf_header.e_ident[EI_MAG0] != ELFMAG0 || 90 elf_header.e_ident[EI_MAG1] != ELFMAG1 || 91 elf_header.e_ident[EI_MAG2] != ELFMAG2 || 92 elf_header.e_ident[EI_MAG3] != ELFMAG3) { 109 const char *section_name = elf_strptr(elf, elf_header.e_shstrndx,
|
dump_symbols.cc | 212 bool IsValidElf(const GElf_Ehdr *elf_header) { 213 return memcmp(elf_header, ELFMAG, SELFMAG) == 0; 434 bool LoadSymbols(Elf *elf, GElf_Ehdr *elf_header, struct SymbolInfo *symbols, 439 reinterpret_cast<GElf_Shdr *>(elf_header->e_shoff + base); 441 if (!FindSectionByName(elf, kStabName, elf_header->e_shstrndx, 447 if (!FindSectionByName(elf, kStabStrName, elf_header->e_shstrndx, 453 if (!FindSectionByName(elf, kSymtabName, elf_header->e_shstrndx, 459 if (!FindSectionByName(elf, kStrtabName, elf_header->e_shstrndx, 657 GElf_Ehdr elf_header; local 661 if (gelf_getehdr(elf, &elf_header) == (GElf_Ehdr *)NULL) [all...] |
/external/libunwind/src/coredump/ |
_UCD_create.c | 82 } elf_header; local 83 #define elf_header32 elf_header.h32 84 #define elf_header64 elf_header.h64
|
/device/google/dragon/crash_collector/ |
coredump_writer.cc | 147 Ehdr elf_header; local 150 if (!ReadUntilNote(&reader, &elf_header, &program_headers, ¬e_buf)) { 186 if (!android::base::WriteFully(fd_dest, &elf_header, sizeof(elf_header))) { 193 const size_t offset = sizeof(elf_header) + i * elf_header.e_phentsize; 227 Ehdr* elf_header, 231 if (!reader->Read(elf_header, sizeof(*elf_header)) || 232 memcmp(elf_header->e_ident, ELFMAG, SELFMAG) != 0 | [all...] |
/toolchain/binutils/binutils-2.25/binutils/ |
elfedit.c | 49 static Elf_Internal_Ehdr elf_header; 65 if (elf_header.e_ident[EI_MAG0] != ELFMAG0 66 || elf_header.e_ident[EI_MAG1] != ELFMAG1 67 || elf_header.e_ident[EI_MAG2] != ELFMAG2 68 || elf_header.e_ident[EI_MAG3] != ELFMAG3) 76 if (elf_header.e_ident[EI_VERSION] != EV_CURRENT) 80 file_name, elf_header.e_ident[EI_VERSION], 86 if (output_elf_machine == elf_header.e_machine) 89 class = elf_header.e_ident[EI_CLASS]; 100 machine = elf_header.e_machine 48 static Elf_Internal_Ehdr elf_header; variable [all...] |
readelf.c | 189 static Elf_Internal_Ehdr elf_header; 299 if (elf_header.e_machine == EM_ARM) \ 565 if (ndx >= elf_header.e_shnum) 578 for (i = 0; i < elf_header.e_shnum; i++) 593 for (i = 0; i < elf_header.e_shnum; i++) 608 for (i = 0; i < elf_header.e_shnum; i++) 654 return elf_header.e_machine == EM_IA_64 655 && elf_header.e_ident[EI_OSABI] == ELFOSABI_OPENVMS; 847 if (elf_header.e_machine == EM_MIPS 848 && elf_header.e_ident[EI_DATA] != ELFDATA2MSB 187 static Elf_Internal_Ehdr elf_header; variable [all...] |
/bionic/tools/relocation_packer/src/ |
elf_file.cc | 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); local 147 if (!elf_header) { 440 const typename ELF::Ehdr* elf_header = ELF::getehdr(elf); local 468 const typename ELF::Ehdr* elf_header = ELF::getehdr(elf); local 629 typename ELF::Ehdr* elf_header = ELF::getehdr(elf); local [all...] |
/art/compiler/ |
elf_builder.h | 593 Elf_Ehdr elf_header = MakeElfHeader(isa_, features_); local 594 elf_header.e_shoff = section_headers_offset; 595 elf_header.e_shnum = shdrs.size(); 596 elf_header.e_shstrndx = shstrtab_.GetSectionIndex(); 603 elf_header.e_phoff = sizeof(Elf_Ehdr); 604 elf_header.e_phnum = phdrs.size(); 608 stream_.WriteFully(&elf_header, sizeof(elf_header)); 753 Elf_Ehdr elf_header = Elf_Ehdr(); local 758 elf_header.e_machine = EM_ARM [all...] |
/toolchain/binutils/binutils-2.25/gold/ |
dwp.cc | 1042 const unsigned char* elf_header = local 1044 if (!elfcpp::Elf_recognizer::is_elf_file(elf_header, hdrsize)) 1053 if (!elfcpp::Elf_recognizer::is_valid_header(elf_header, hdrsize, &size, 1061 return this->sized_make_object<32, true>(elf_header, input_file, 1068 return this->sized_make_object<32, false>(elf_header, input_file, 1078 return this->sized_make_object<64, true>(elf_header, input_file, 1085 return this->sized_make_object<64, false>(elf_header, input_file, [all...] |
/toolchain/binutils/binutils-2.25/bfd/ |
elf-bfd.h | 1577 Elf_Internal_Ehdr elf_header[1]; \/* Actual data, but ref like ptr *\/ member in struct:elf_obj_tdata [all...] |