Lines Matching refs:shdr
348 Elf_Shdr *shdr = &info->sechdrs[i]; in find_sec() local
350 if ((shdr->sh_flags & SHF_ALLOC) in find_sec()
351 && strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_sec()
3018 Elf_Shdr *shdr = &info->sechdrs[i]; in rewrite_section_headers() local
3019 if (shdr->sh_type != SHT_NOBITS in rewrite_section_headers()
3020 && info->len < shdr->sh_offset + shdr->sh_size) { in rewrite_section_headers()
3027 shdr->sh_addr = (size_t)info->hdr + shdr->sh_offset; in rewrite_section_headers()
3031 if (module_exit_section(info->secstrings+shdr->sh_name)) in rewrite_section_headers()
3032 shdr->sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
3294 Elf_Shdr *shdr = &info->sechdrs[i]; in move_module() local
3296 if (!(shdr->sh_flags & SHF_ALLOC)) in move_module()
3299 if (shdr->sh_entsize & INIT_OFFSET_MASK) in move_module()
3301 + (shdr->sh_entsize & ~INIT_OFFSET_MASK); in move_module()
3303 dest = mod->core_layout.base + shdr->sh_entsize; in move_module()
3305 if (shdr->sh_type != SHT_NOBITS) in move_module()
3306 memcpy(dest, (void *)shdr->sh_addr, shdr->sh_size); in move_module()
3308 shdr->sh_addr = (unsigned long)dest; in move_module()
3310 (long)shdr->sh_addr, info->secstrings + shdr->sh_name); in move_module()