Home
last modified time | relevance | path

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

/system/unwinding/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.cpp97 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); in CreateElf()
98 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/unwinding/libunwindstack/
DElf.cpp211 uint8_t e_ident[SELFMAG + 1]; in IsValidElf() local
212 if (!memory->ReadFully(0, e_ident, SELFMAG)) { in IsValidElf()
216 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/chre/platform/shared/
Dnanoapp_loader.cc412 if (elfHeader != nullptr && (elfHeader->e_ident[EI_MAG0] == ELFMAG0) && in verifyElfHeader()
413 (elfHeader->e_ident[EI_MAG1] == ELFMAG1) && in verifyElfHeader()
414 (elfHeader->e_ident[EI_MAG2] == ELFMAG2) && in verifyElfHeader()
415 (elfHeader->e_ident[EI_MAG3] == ELFMAG3) && in verifyElfHeader()
/system/chre/platform/shared/include/chre/platform/shared/
Dloader_util.h150 unsigned char e_ident[EI_NIDENT]; member
/system/unwinding/libunwindstack/tests/fuzz/
DUnwinderComponentCreator.cpp256 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); in PutElfInMemory()
257 ehdr.e_ident[EI_CLASS] = class_type; in PutElfInMemory()