Searched refs:elf_magic (Results 1 – 2 of 2) sorted by relevance
/system/extras/simpleperf/ |
D | read_elf.cpp | 48 static const char elf_magic[] = {0x7f, 'E', 'L', 'F'}; in IsValidElfFile() local 50 return android::base::ReadFully(fd, buf, 4) && memcmp(buf, elf_magic, 4) == 0; in IsValidElfFile()
|
/system/core/libbacktrace/ |
D | BacktraceOffline.cpp | 628 static const char elf_magic[] = {0x7f, 'E', 'L', 'F'}; in IsValidElfPath() local 644 return memcmp(buf, elf_magic, 4) == 0; in IsValidElfPath()
|