Home
last modified time | relevance | path

Searched refs:e_ident (Results 1 – 8 of 8) sorted by relevance

/system/core/libunwindstack/tests/
DGenGnuDebugdata.cpp36 memcpy(&ehdr->e_ident[0], ELFMAG, SELFMAG); in InitEhdr()
37 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; in InitEhdr()
38 ehdr->e_ident[EI_VERSION] = EV_CURRENT; in InitEhdr()
39 ehdr->e_ident[EI_OSABI] = ELFOSABI_SYSV; in InitEhdr()
40 ehdr->e_ident[EI_CLASS] = elf_class; in InitEhdr()
DElfTestUtils.cpp39 memcpy(&ehdr->e_ident[0], ELFMAG, SELFMAG); in TestInitEhdr()
40 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; in TestInitEhdr()
41 ehdr->e_ident[EI_VERSION] = EV_CURRENT; in TestInitEhdr()
42 ehdr->e_ident[EI_OSABI] = ELFOSABI_SYSV; in TestInitEhdr()
43 ehdr->e_ident[EI_CLASS] = elf_class; in TestInitEhdr()
DMapInfoCreateMemoryTest.cpp51 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); in InitElf()
52 ehdr.e_ident[EI_CLASS] = class_type; in InitElf()
215 uint8_t e_ident[SELFMAG + 1]; in TEST_F() local
216 ASSERT_TRUE(memory->ReadFully(0, e_ident, SELFMAG)); in TEST_F()
217 ASSERT_EQ(0, memcmp(e_ident, ELFMAG, SELFMAG)); in TEST_F()
220 ASSERT_TRUE(memory->ReadFully(0x1000, e_ident, 1)); in TEST_F()
233 uint8_t e_ident[SELFMAG + 1]; in TEST_F() local
234 ASSERT_TRUE(memory->ReadFully(0, e_ident, SELFMAG)); in TEST_F()
235 ASSERT_EQ(0, memcmp(e_ident, ELFMAG, SELFMAG)); in TEST_F()
238 ASSERT_TRUE(memory->ReadFully(0x1000, e_ident, 1)); in TEST_F()
DJitDebugTest.cpp95 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); in CreateElf()
96 ehdr.e_ident[EI_CLASS] = class_type; in CreateElf()
DMapInfoGetElfTest.cpp54 memcpy(ehdr->e_ident, ELFMAG, SELFMAG); in InitElf()
55 ehdr->e_ident[EI_CLASS] = class_type; in InitElf()
/system/core/libunwindstack/
DElf.cpp207 uint8_t e_ident[SELFMAG + 1]; in IsValidElf() local
208 if (!memory->ReadFully(0, e_ident, SELFMAG)) { in IsValidElf()
212 if (memcmp(e_ident, ELFMAG, SELFMAG) != 0) { in IsValidElf()
/system/update_engine/payload_generator/
Dxz_android.cc82 if (header->e_ident[EI_DATA] != ELFDATA2LSB) in GetFilterID()
/system/core/libunwindstack/tests/fuzz/
DUnwinderComponentCreator.cpp213 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); in PutElfInMemory()
214 ehdr.e_ident[EI_CLASS] = class_type; in PutElfInMemory()