Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/arch/arm/mach-rockchip/
H A Drk_mini_dump.c189 Elf64_Ehdr *ehdr = (Elf64_Ehdr *)ehaddr; in rk_dump_elf64_image_phdr() local
195 if (!md_is_uboot_addr((void *)ehdr)) in rk_dump_elf64_image_phdr()
202 memcpy(ehdr->e_ident, ELFMAG, SELFMAG); in rk_dump_elf64_image_phdr()
203 ehdr->e_ident[EI_CLASS] = ELFCLASS64; in rk_dump_elf64_image_phdr()
204 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; in rk_dump_elf64_image_phdr()
205 ehdr->e_ident[EI_VERSION] = EV_CURRENT; in rk_dump_elf64_image_phdr()
206 ehdr->e_ident[EI_OSABI] = ELFOSABI_NONE; in rk_dump_elf64_image_phdr()
208 if (ehdr->e_type != ET_CORE) { in rk_dump_elf64_image_phdr()
210 ehdr->e_type = ET_CORE; in rk_dump_elf64_image_phdr()
212 if (ehdr->e_machine != EM_AARCH64) { in rk_dump_elf64_image_phdr()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Delf.c32 Elf32_Ehdr *ehdr; /* Elf header structure pointer */ in load_elf_image_phdr() local
36 ehdr = (Elf32_Ehdr *)addr; in load_elf_image_phdr()
37 phdr = (Elf32_Phdr *)(addr + ehdr->e_phoff); in load_elf_image_phdr()
40 for (i = 0; i < ehdr->e_phnum; ++i) { in load_elf_image_phdr()
54 return ehdr->e_entry; in load_elf_image_phdr()
59 Elf32_Ehdr *ehdr; /* Elf header structure pointer */ in load_elf_image_shdr() local
65 ehdr = (Elf32_Ehdr *)addr; in load_elf_image_shdr()
68 shdr = (Elf32_Shdr *)(addr + ehdr->e_shoff + in load_elf_image_shdr()
69 (ehdr->e_shstrndx * sizeof(Elf32_Shdr))); in load_elf_image_shdr()
75 for (i = 0; i < ehdr->e_shnum; ++i) { in load_elf_image_shdr()
[all …]
/rk3399_rockchip-uboot/include/
H A Delf.h85 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ argument
86 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
87 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
88 (ehdr).e_ident[EI_MAG3] == ELFMAG3)