Lines Matching refs:shdr
60 Elf32_Shdr *shdr; /* Section header structure pointer */ in load_elf_image_shdr() local
68 shdr = (Elf32_Shdr *)(addr + ehdr->e_shoff + in load_elf_image_shdr()
71 if (shdr->sh_type == SHT_STRTAB) in load_elf_image_shdr()
72 strtab = (unsigned char *)(addr + shdr->sh_offset); in load_elf_image_shdr()
76 shdr = (Elf32_Shdr *)(addr + ehdr->e_shoff + in load_elf_image_shdr()
79 if (!(shdr->sh_flags & SHF_ALLOC) || in load_elf_image_shdr()
80 shdr->sh_addr == 0 || shdr->sh_size == 0) { in load_elf_image_shdr()
86 (shdr->sh_type == SHT_NOBITS) ? "Clear" : "Load", in load_elf_image_shdr()
87 &strtab[shdr->sh_name], in load_elf_image_shdr()
88 (unsigned long)shdr->sh_addr, in load_elf_image_shdr()
89 (long)shdr->sh_size); in load_elf_image_shdr()
92 if (shdr->sh_type == SHT_NOBITS) { in load_elf_image_shdr()
93 memset((void *)(uintptr_t)shdr->sh_addr, 0, in load_elf_image_shdr()
94 shdr->sh_size); in load_elf_image_shdr()
96 image = (unsigned char *)addr + shdr->sh_offset; in load_elf_image_shdr()
97 memcpy((void *)(uintptr_t)shdr->sh_addr, in load_elf_image_shdr()
98 (const void *)image, shdr->sh_size); in load_elf_image_shdr()
100 flush_cache(shdr->sh_addr, shdr->sh_size); in load_elf_image_shdr()