Searched refs:elf_hdr (Results 1 – 3 of 3) sorted by relevance
34 Elf32_Ehdr *elf_hdr = (Elf32_Ehdr *)pfe_firmware; in pfe_load_elf() local35 Elf32_Half sections = be16_to_cpu(elf_hdr->e_shnum); in pfe_load_elf()37 be32_to_cpu(elf_hdr->e_shoff)); in pfe_load_elf()44 if (strncmp((char *)&elf_hdr->e_ident[EI_MAG0], ELFMAG, SELFMAG)) { in pfe_load_elf()49 if (elf_hdr->e_ident[EI_CLASS] != ELFCLASS32) { in pfe_load_elf()51 elf_hdr->e_ident[EI_CLASS]); in pfe_load_elf()55 if (elf_hdr->e_ident[EI_DATA] != ELFDATA2MSB) { in pfe_load_elf()57 elf_hdr->e_ident[EI_DATA]); in pfe_load_elf()61 if (be16_to_cpu(elf_hdr->e_type) != ET_EXEC) { in pfe_load_elf()63 be16_to_cpu(elf_hdr->e_type)); in pfe_load_elf()
1091 GElf_Ehdr elf_hdr; member1745 sec_name = elf_strptr(ctx->elf_fd, ctx->elf_hdr.e_shstrndx, in bpf_fill_section_data()1900 for (i = 1; i < ctx->elf_hdr.e_shnum; i++) { in bpf_fetch_ancillary()1948 for (i = 1; i < ctx->elf_hdr.e_shnum; i++) { in bpf_fetch_prog()2053 for (i = 1; i < ctx->elf_hdr.e_shnum; i++) { in bpf_fetch_prog_relo()2184 for (i = 1; i < ctx->elf_hdr.e_shnum; i++) { in bpf_fill_prog_arrays()2358 if (ctx->elf_hdr.e_type != ET_REL || in bpf_elf_check_ehdr()2359 (ctx->elf_hdr.e_machine != EM_NONE && in bpf_elf_check_ehdr()2360 ctx->elf_hdr.e_machine != EM_BPF) || in bpf_elf_check_ehdr()2361 ctx->elf_hdr.e_version != EV_CURRENT) { in bpf_elf_check_ehdr()[all …]
62 hdr elf_hdr[ADDR, PHENTSIZE]69 type elf_hdr[ADDR, PHENTSIZE] {