Lines Matching refs:shdr
375 Elf_Shdr *shdr = &info->sechdrs[i]; in find_sec() local
377 if ((shdr->sh_flags & SHF_ALLOC) in find_sec()
378 && strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_sec()
2775 Elf_Shdr *shdr = &info->sechdrs[i]; in rewrite_section_headers() local
2776 if (shdr->sh_type != SHT_NOBITS in rewrite_section_headers()
2777 && info->len < shdr->sh_offset + shdr->sh_size) { in rewrite_section_headers()
2784 shdr->sh_addr = (size_t)info->hdr + shdr->sh_offset; in rewrite_section_headers()
2788 if (strstarts(info->secstrings+shdr->sh_name, ".exit")) in rewrite_section_headers()
2789 shdr->sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
3021 Elf_Shdr *shdr = &info->sechdrs[i]; in move_module() local
3023 if (!(shdr->sh_flags & SHF_ALLOC)) in move_module()
3026 if (shdr->sh_entsize & INIT_OFFSET_MASK) in move_module()
3028 + (shdr->sh_entsize & ~INIT_OFFSET_MASK); in move_module()
3030 dest = mod->module_core + shdr->sh_entsize; in move_module()
3032 if (shdr->sh_type != SHT_NOBITS) in move_module()
3033 memcpy(dest, (void *)shdr->sh_addr, shdr->sh_size); in move_module()
3035 shdr->sh_addr = (unsigned long)dest; in move_module()
3037 (long)shdr->sh_addr, info->secstrings + shdr->sh_name); in move_module()