Searched refs:elf_hdr (Results 1 - 2 of 2) sorted by relevance

/linux-master/tools/lib/bpf/
H A Dlinker.c137 Elf64_Ehdr *elf_hdr; member in struct:bpf_linker
319 linker->elf_hdr = elf64_newehdr(linker->elf);
320 if (!linker->elf_hdr) {
325 linker->elf_hdr->e_machine = EM_BPF;
326 linker->elf_hdr->e_type = ET_REL;
328 linker->elf_hdr->e_ident[EI_DATA] = ELFDATA2LSB;
330 linker->elf_hdr->e_ident[EI_DATA] = ELFDATA2MSB;
366 linker->elf_hdr->e_shstrndx = sec->sec_idx;
/linux-master/sound/soc/codecs/
H A Drt5677.c815 Elf32_Ehdr *elf_hdr; local
823 elf_hdr = (Elf32_Ehdr *)buf;
827 if (strncmp(elf_hdr->e_ident, ELFMAG, sizeof(ELFMAG) - 1))
829 if (elf_hdr->e_ehsize != sizeof(Elf32_Ehdr))
831 if (elf_hdr->e_machine != EM_XTENSA)
834 if (len < elf_hdr->e_phoff)
836 pr_hdr = (Elf32_Phdr *)(buf + elf_hdr->e_phoff);
837 for (i = 0; i < elf_hdr->e_phnum; i++) {

Completed in 210 milliseconds