Lines Matching refs:shdr
226 Elf_Shdr *shdr = &info->sechdrs[i]; in find_sec() local
228 if ((shdr->sh_flags & SHF_ALLOC) in find_sec()
229 && strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_sec()
2620 Elf_Shdr *shdr = &info->sechdrs[i]; in rewrite_section_headers() local
2621 if (shdr->sh_type != SHT_NOBITS in rewrite_section_headers()
2622 && info->len < shdr->sh_offset + shdr->sh_size) { in rewrite_section_headers()
2629 shdr->sh_addr = (size_t)info->hdr + shdr->sh_offset; in rewrite_section_headers()
2633 if (strstarts(info->secstrings+shdr->sh_name, ".exit")) in rewrite_section_headers()
2634 shdr->sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
2866 Elf_Shdr *shdr = &info->sechdrs[i]; in move_module() local
2868 if (!(shdr->sh_flags & SHF_ALLOC)) in move_module()
2871 if (shdr->sh_entsize & INIT_OFFSET_MASK) in move_module()
2873 + (shdr->sh_entsize & ~INIT_OFFSET_MASK); in move_module()
2875 dest = mod->module_core + shdr->sh_entsize; in move_module()
2877 if (shdr->sh_type != SHT_NOBITS) in move_module()
2878 memcpy(dest, (void *)shdr->sh_addr, shdr->sh_size); in move_module()
2880 shdr->sh_addr = (unsigned long)dest; in move_module()
2882 (long)shdr->sh_addr, info->secstrings + shdr->sh_name); in move_module()