Home
last modified time | relevance | path

Searched refs:ehdr (Results 1 – 4 of 4) sorted by relevance

/drivers/remoteproc/
A Drproc-elf-loader.c52 Elf32_Ehdr *ehdr; local
65 ehdr = (Elf32_Ehdr *)addr;
68 if (!IS_ELF(*ehdr) || ehdr->e_type != ET_EXEC || class != ELFCLASS32) {
93 if (ehdr->e_phnum == 0) {
98 if (ehdr->e_phoff > size) {
124 if (!IS_ELF(*ehdr) || ehdr->e_type != ET_EXEC || class != ELFCLASS64) {
149 if (ehdr->e_phnum == 0) {
175 ehdr = (Elf32_Ehdr *)addr;
214 Elf64_Ehdr *ehdr; local
283 return ehdr->e_entry;
[all …]
A Dpru_rproc.c326 Elf32_Ehdr *ehdr; in pru_load() local
332 ehdr = (Elf32_Ehdr *)addr; in pru_load()
333 phdr = (Elf32_Phdr *)(addr + ehdr->e_phoff); in pru_load()
336 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { in pru_load()
385 priv->bootaddr = ehdr->e_entry; in pru_load()
A Drproc-uclass.c843 Elf32_Ehdr *ehdr; /* Elf header structure pointer */ in rproc_find_table() local
851 ehdr = (Elf32_Ehdr *)(uintptr_t)addr; in rproc_find_table()
852 elf_data = (u8 *)ehdr; in rproc_find_table()
853 shdr = (Elf32_Shdr *)(elf_data + ehdr->e_shoff); in rproc_find_table()
854 memcpy(&sectionheader, &shdr[ehdr->e_shstrndx], sizeof(sectionheader)); in rproc_find_table()
857 for (i = 0; i < ehdr->e_shnum; i++, shdr++) { in rproc_find_table()
A Dipu_rproc.c482 Elf32_Ehdr *ehdr; /* Elf header structure pointer */ in ipu_load() local
489 ehdr = (Elf32_Ehdr *)addr; in ipu_load()
490 phdr = (Elf32_Phdr *)(addr + ehdr->e_phoff); in ipu_load()
494 for (i = 0; i < ehdr->e_phnum; ++i) { in ipu_load()

Completed in 9 milliseconds