/system/core/libunwindstack/tests/ |
H A D | ElfTestUtils.cpp | 37 void TestInitEhdr(Ehdr* ehdr, uint32_t elf_class, uint32_t machine_type) { argument 38 memset(ehdr, 0, sizeof(Ehdr)); 39 memcpy(&ehdr->e_ident[0], ELFMAG, SELFMAG); 40 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; 41 ehdr->e_ident[EI_VERSION] = EV_CURRENT; 42 ehdr->e_ident[EI_OSABI] = ELFOSABI_SYSV; 43 ehdr->e_ident[EI_CLASS] = elf_class; 44 ehdr->e_type = ET_DYN; 45 ehdr->e_machine = machine_type; 46 ehdr 62 Ehdr ehdr; local [all...] |
H A D | GenGnuDebugdata.cpp | 34 void InitEhdr(Ehdr* ehdr, uint32_t elf_class, uint32_t machine) { argument 35 memset(ehdr, 0, sizeof(Ehdr)); 36 memcpy(&ehdr->e_ident[0], ELFMAG, SELFMAG); 37 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; 38 ehdr->e_ident[EI_VERSION] = EV_CURRENT; 39 ehdr->e_ident[EI_OSABI] = ELFOSABI_SYSV; 40 ehdr->e_ident[EI_CLASS] = elf_class; 41 ehdr->e_type = ET_DYN; 42 ehdr->e_machine = machine; 43 ehdr 48 GenElf(Ehdr* ehdr, int fd) argument [all...] |
H A D | MapInfoGetElfTest.cpp | 53 static void InitElf(uint64_t sh_offset, Ehdr* ehdr, uint8_t class_type, uint8_t machine_type) { argument 54 memset(ehdr, 0, sizeof(*ehdr)); 55 memcpy(ehdr->e_ident, ELFMAG, SELFMAG); 56 ehdr->e_ident[EI_CLASS] = class_type; 57 ehdr->e_machine = machine_type; 58 ehdr->e_shoff = sh_offset; 59 ehdr->e_shentsize = sizeof(Shdr) + 100; 60 ehdr->e_shnum = 4; 83 Elf32_Ehdr ehdr; local 97 Elf64_Ehdr ehdr; local 175 Elf32_Ehdr ehdr; local 204 Elf32_Ehdr ehdr; local 233 Elf32_Ehdr ehdr; local 263 Elf32_Ehdr ehdr; local 291 Elf64_Ehdr ehdr; local 318 Elf64_Ehdr ehdr; local 340 Elf64_Ehdr ehdr; local 367 Elf64_Ehdr ehdr; local [all...] |
H A D | ElfInterfaceTest.cpp | 135 Ehdr ehdr; local 136 memset(&ehdr, 0, sizeof(ehdr)); 137 ehdr.e_phoff = 0x100; 138 ehdr.e_phnum = 1; 139 ehdr.e_phentsize = sizeof(Phdr); 140 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); 175 Ehdr ehdr; local 176 memset(&ehdr, 244 Ehdr ehdr; local 315 Ehdr ehdr; local 374 Ehdr ehdr; local 447 Elf32_Ehdr ehdr; local 483 Ehdr ehdr; local 751 Ehdr ehdr; local 777 Ehdr ehdr; local 866 Ehdr ehdr; local 959 Elf32_Ehdr ehdr; local 987 Elf32_Ehdr ehdr; local 1020 Elf32_Ehdr ehdr; local 1083 Elf32_Ehdr ehdr; local [all...] |
H A D | ElfTestUtils.h | 28 void TestInitEhdr(Ehdr* ehdr, uint32_t elf_class, uint32_t machine_type);
|
H A D | MapInfoGetLoadBiasTest.cpp | 132 Elf32_Ehdr ehdr; local 133 TestInitEhdr(&ehdr, ELFCLASS32, EM_ARM); 134 ehdr.e_phoff = 0x5000; 135 ehdr.e_phnum = 2; 136 ehdr.e_phentsize = sizeof(Elf32_Phdr); 137 memory->SetMemory(offset, &ehdr, sizeof(ehdr));
|
H A D | MapInfoCreateMemoryTest.cpp | 48 Ehdr ehdr; local 49 memset(&ehdr, 0, sizeof(ehdr)); 50 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); 51 ehdr.e_ident[EI_CLASS] = class_type; 52 ehdr.e_shoff = sh_offset; 53 ehdr.e_shentsize = sizeof(Shdr) + 100; 54 ehdr.e_shnum = 4; 55 memcpy(&buffer[file_offset], &ehdr, sizeof(ehdr)); [all...] |
H A D | ElfTest.cpp | 48 Elf32_Ehdr ehdr; local 49 TestInitEhdr<Elf32_Ehdr>(&ehdr, ELFCLASS32, machine_type); 51 ehdr.e_phoff = 0x100; 52 ehdr.e_ehsize = sizeof(ehdr); 53 ehdr.e_phentsize = sizeof(Elf32_Phdr); 54 ehdr.e_phnum = 1; 55 ehdr.e_shentsize = sizeof(Elf32_Shdr); 57 ehdr.e_flags = 0x5000200; 58 ehdr 86 Elf64_Ehdr ehdr; local [all...] |
H A D | JitDebugTest.cpp | 91 EhdrType ehdr; local 92 memset(&ehdr, 0, sizeof(ehdr)); 93 uint64_t sh_offset = sizeof(ehdr); 94 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); 95 ehdr.e_ident[EI_CLASS] = class_type; 96 ehdr.e_machine = machine_type; 97 ehdr.e_shstrndx = 1; 98 ehdr.e_shoff = sh_offset; 99 ehdr [all...] |
/system/core/libunwindstack/ |
H A D | ElfInterface.cpp | 163 EhdrType ehdr; local 164 if (!memory_->ReadFully(0, &ehdr, sizeof(ehdr))) { 170 if (!ReadProgramHeaders<EhdrType, PhdrType>(ehdr, load_bias)) { 176 if (!ReadSectionHeaders<EhdrType, ShdrType>(ehdr)) { 184 EhdrType ehdr; local 185 if (!memory->Read(0, &ehdr, sizeof(ehdr))) { 189 uint64_t offset = ehdr.e_phoff; 190 for (size_t i = 0; i < ehdr 203 ReadProgramHeaders(const EhdrType& ehdr, uint64_t* load_bias) argument 305 ReadSectionHeaders(const EhdrType& ehdr) argument 551 EhdrType ehdr; local [all...] |
/system/core/libunwindstack/include/unwindstack/ |
H A D | ElfInterface.h | 109 bool ReadProgramHeaders(const EhdrType& ehdr, uint64_t* load_bias); 112 bool ReadSectionHeaders(const EhdrType& ehdr);
|