Searched refs:ehdr (Results 1 – 3 of 3) sorted by relevance
58 Elf32_Ehdr *ehdr = (Elf32_Ehdr *) &__executable_start; in dl_iterate_phdr() local59 Elf32_Phdr *phdr = (Elf32_Phdr *)((unsigned long)ehdr + ehdr->e_phoff); in dl_iterate_phdr()63 if (ehdr->e_ident[EI_MAG0] != ELFMAG0) return -1; in dl_iterate_phdr()64 if (ehdr->e_ident[EI_MAG1] != ELFMAG1) return -1; in dl_iterate_phdr()65 if (ehdr->e_ident[EI_MAG2] != ELFMAG2) return -1; in dl_iterate_phdr()66 if (ehdr->e_ident[EI_MAG3] != ELFMAG3) return -1; in dl_iterate_phdr()71 dl_info.dlpi_phnum = ehdr->e_phnum; in dl_iterate_phdr()
119 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ argument120 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \121 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \122 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
633 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)_hdr; in get_lib_extents() local653 phdr = (Elf32_Phdr *)(_hdr + ehdr->e_phoff); in get_lib_extents()657 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt, ++phdr) { in get_lib_extents()773 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)header; in load_segments() local774 Elf32_Phdr *phdr = (Elf32_Phdr *)((unsigned char *)header + ehdr->e_phoff); in load_segments()791 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt, ++phdr) { in load_segments()944 get_wr_offset(int fd, const char *name, Elf32_Ehdr *ehdr)948 int shdr_sz = ehdr->e_shnum * sizeof(Elf32_Shdr);953 ehdr->e_shoff & (~PAGE_MASK));960 for(cnt = 0, shdr = shdr_start; cnt < ehdr->e_shnum; ++cnt, ++shdr) {