Home
last modified time | relevance | path

Searched refs:e_ident (Results 1 – 7 of 7) 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()
220 uint8_t e_ident[SELFMAG + 1]; in TEST_F() local
221 ASSERT_TRUE(memory->ReadFully(0, e_ident, SELFMAG)); in TEST_F()
222 ASSERT_EQ(0, memcmp(e_ident, ELFMAG, SELFMAG)); in TEST_F()
225 ASSERT_TRUE(memory->ReadFully(0x1000, e_ident, 1)); in TEST_F()
238 uint8_t e_ident[SELFMAG + 1]; in TEST_F() local
239 ASSERT_TRUE(memory->ReadFully(0, e_ident, SELFMAG)); in TEST_F()
240 ASSERT_EQ(0, memcmp(e_ident, ELFMAG, SELFMAG)); in TEST_F()
243 ASSERT_TRUE(memory->ReadFully(0x1000, e_ident, 1)); in TEST_F()
DJitDebugTest.cpp91 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); in CreateElf()
92 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.cpp198 uint8_t e_ident[SELFMAG + 1]; in IsValidElf() local
199 if (!memory->ReadFully(0, e_ident, SELFMAG)) { in IsValidElf()
203 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()