Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
H A Dlinker.c142 Elf64_Ehdr *elf_hdr; member
372 linker->elf_hdr = elf64_newehdr(linker->elf); in init_output_elf()
373 if (!linker->elf_hdr) { in init_output_elf()
378 linker->elf_hdr->e_machine = EM_BPF; in init_output_elf()
379 linker->elf_hdr->e_type = ET_REL; in init_output_elf()
381 linker->elf_hdr->e_ident[EI_DATA] = ELFDATANONE; in init_output_elf()
414 linker->elf_hdr->e_shstrndx = sec->sec_idx; in init_output_elf()
674 unsigned char link_byteorder = linker->elf_hdr->e_ident[EI_DATA]; in linker_load_obj_file()
706 linker->elf_hdr->e_ident[EI_DATA] = obj_byteorder; in linker_load_obj_file()
2908 link_endianness = linker->elf_hdr->e_ident[EI_DATA] == ELFDATA2MSB ? in finalize_btf()
/linux/sound/soc/codecs/
H A Drt5677.c814 Elf32_Ehdr *elf_hdr; in rt5677_parse_and_load_dsp()
822 elf_hdr = (Elf32_Ehdr *)buf; in rt5677_parse_and_load_dsp()
826 if (strncmp(elf_hdr->e_ident, ELFMAG, sizeof(ELFMAG) - 1)) in rt5677_parse_and_load_dsp()
828 if (elf_hdr->e_ehsize != sizeof(Elf32_Ehdr)) in rt5677_parse_and_load_dsp()
830 if (elf_hdr->e_machine != EM_XTENSA) in rt5677_parse_and_load_dsp()
833 if (len < elf_hdr->e_phoff) in rt5677_parse_and_load_dsp()
835 pr_hdr = (Elf32_Phdr *)(buf + elf_hdr->e_phoff); in rt5677_parse_and_load_dsp()
836 for (i = 0; i < elf_hdr->e_phnum; i++) { in rt5677_parse_and_load_dsp()
815 Elf32_Ehdr *elf_hdr; rt5677_parse_and_load_dsp() local