Home
last modified time | relevance | path

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

/Linux-v6.1/tools/lib/bpf/
Dlinker.c137 Elf64_Ehdr *elf_hdr; member
319 linker->elf_hdr = elf64_newehdr(linker->elf); in init_output_elf()
320 if (!linker->elf_hdr) { in init_output_elf()
325 linker->elf_hdr->e_machine = EM_BPF; in init_output_elf()
326 linker->elf_hdr->e_type = ET_REL; in init_output_elf()
328 linker->elf_hdr->e_ident[EI_DATA] = ELFDATA2LSB; in init_output_elf()
330 linker->elf_hdr->e_ident[EI_DATA] = ELFDATA2MSB; in init_output_elf()
366 linker->elf_hdr->e_shstrndx = sec->sec_idx; in init_output_elf()
/Linux-v6.1/sound/soc/codecs/
Drt5677.c817 Elf32_Ehdr *elf_hdr; in rt5677_parse_and_load_dsp() local
825 elf_hdr = (Elf32_Ehdr *)buf; in rt5677_parse_and_load_dsp()
829 if (strncmp(elf_hdr->e_ident, ELFMAG, sizeof(ELFMAG) - 1)) in rt5677_parse_and_load_dsp()
831 if (elf_hdr->e_ehsize != sizeof(Elf32_Ehdr)) in rt5677_parse_and_load_dsp()
833 if (elf_hdr->e_machine != EM_XTENSA) in rt5677_parse_and_load_dsp()
836 if (len < elf_hdr->e_phoff) in rt5677_parse_and_load_dsp()
838 pr_hdr = (Elf32_Phdr *)(buf + elf_hdr->e_phoff); in rt5677_parse_and_load_dsp()
839 for (i = 0; i < elf_hdr->e_phnum; i++) { in rt5677_parse_and_load_dsp()