Searched defs:ehdr (Results 1 - 2 of 2) sorted by relevance

/bionic/libc/bionic/
H A Ddl_iterate_phdr_static.c50 Elf32_Ehdr *ehdr = (Elf32_Ehdr *) &__executable_start; local
51 Elf32_Phdr *phdr = (Elf32_Phdr *)((unsigned long)ehdr + ehdr->e_phoff);
55 if (ehdr->e_ident[EI_MAG0] != ELFMAG0) return -1;
56 if (ehdr->e_ident[EI_MAG1] != ELFMAG1) return -1;
57 if (ehdr->e_ident[EI_MAG2] != ELFMAG2) return -1;
58 if (ehdr->e_ident[EI_MAG3] != ELFMAG3) return -1;
63 dl_info.dlpi_phnum = ehdr->e_phnum;
/bionic/linker/
H A Dlinker_phdr.c613 const Elf32_Ehdr* ehdr = (const Elf32_Ehdr*)(void*)elf_addr; local
614 Elf32_Addr offset = ehdr->e_phoff;
615 loaded = (Elf32_Addr)ehdr + offset;

Completed in 63 milliseconds