Home
last modified time | relevance | path

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

/linux-6.15/tools/lib/bpf/
H A Dlinker.c143 Elf64_Ehdr *elf_hdr; member
373 linker->elf_hdr = elf64_newehdr(linker->elf); in init_output_elf()
374 if (!linker->elf_hdr) { in init_output_elf()
379 linker->elf_hdr->e_machine = EM_BPF; in init_output_elf()
380 linker->elf_hdr->e_type = ET_REL; in init_output_elf()
382 linker->elf_hdr->e_ident[EI_DATA] = ELFDATANONE; in init_output_elf()
415 linker->elf_hdr->e_shstrndx = sec->sec_idx; in init_output_elf()
675 unsigned char link_byteorder = linker->elf_hdr->e_ident[EI_DATA]; in linker_load_obj_file()
707 linker->elf_hdr->e_ident[EI_DATA] = obj_byteorder; in linker_load_obj_file()
2906 link_endianness = linker->elf_hdr->e_ident[EI_DATA] == ELFDATA2MSB ? in finalize_btf()
/linux-6.15/sound/soc/codecs/
H A Drt5677.c815 Elf32_Ehdr *elf_hdr; in rt5677_parse_and_load_dsp() local
823 elf_hdr = (Elf32_Ehdr *)buf; in rt5677_parse_and_load_dsp()
827 if (strncmp(elf_hdr->e_ident, ELFMAG, sizeof(ELFMAG) - 1)) in rt5677_parse_and_load_dsp()
829 if (elf_hdr->e_ehsize != sizeof(Elf32_Ehdr)) in rt5677_parse_and_load_dsp()
831 if (elf_hdr->e_machine != EM_XTENSA) in rt5677_parse_and_load_dsp()
834 if (len < elf_hdr->e_phoff) in rt5677_parse_and_load_dsp()
836 pr_hdr = (Elf32_Phdr *)(buf + elf_hdr->e_phoff); in rt5677_parse_and_load_dsp()
837 for (i = 0; i < elf_hdr->e_phnum; i++) { in rt5677_parse_and_load_dsp()