Home
last modified time | relevance | path

Searched refs:ehdr (Results 1 – 3 of 3) sorted by relevance

/bionic/libc/bionic/
Ddl_iterate_phdr_static.c50 Elf32_Ehdr *ehdr = (Elf32_Ehdr *) &__executable_start; in dl_iterate_phdr() local
51 Elf32_Phdr *phdr = (Elf32_Phdr *)((unsigned long)ehdr + ehdr->e_phoff); in dl_iterate_phdr()
55 if (ehdr->e_ident[EI_MAG0] != ELFMAG0) return -1; in dl_iterate_phdr()
56 if (ehdr->e_ident[EI_MAG1] != ELFMAG1) return -1; in dl_iterate_phdr()
57 if (ehdr->e_ident[EI_MAG2] != ELFMAG2) return -1; in dl_iterate_phdr()
58 if (ehdr->e_ident[EI_MAG3] != ELFMAG3) return -1; in dl_iterate_phdr()
63 dl_info.dlpi_phnum = ehdr->e_phnum; in dl_iterate_phdr()
/bionic/libc/include/sys/
Dexec_elf.h58 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ argument
59 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
60 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
61 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
/bionic/linker/
Dlinker_phdr.c613 const Elf32_Ehdr* ehdr = (const Elf32_Ehdr*)(void*)elf_addr; in phdr_table_get_loaded_phdr() local
614 Elf32_Addr offset = ehdr->e_phoff; in phdr_table_get_loaded_phdr()
615 loaded = (Elf32_Addr)ehdr + offset; in phdr_table_get_loaded_phdr()