Lines Matching refs:sh_flags
356 if ((shdr->sh_flags & SHF_ALLOC) in find_sec()
1539 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty()
2101 if ((sechdrs[i].sh_flags & shf_wx) == shf_wx) { in module_enforce_rwx_sections()
2402 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC)) in apply_relocations()
2405 if (info->sechdrs[i].sh_flags & SHF_RELA_LIVEPATCH) in apply_relocations()
2470 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections()
2471 || (s->sh_flags & masks[m][1]) in layout_sections()
2503 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections()
2504 || (s->sh_flags & masks[m][1]) in layout_sections()
2661 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type()
2663 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC in elf_type()
2665 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) in elf_type()
2667 else if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
2673 if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
2701 if (!(sec->sh_flags & SHF_ALLOC) in is_core_symbol()
2703 || !(sec->sh_flags & SHF_EXECINSTR) in is_core_symbol()
2726 symsect->sh_flags |= SHF_ALLOC; in layout_symtab()
2753 strsect->sh_flags |= SHF_ALLOC; in layout_symtab()
2864 if (!(info->sechdrs[i].sh_flags & SHF_ALLOC) || in kmemleak_load_module()
2865 !(info->sechdrs[i].sh_flags & SHF_WRITE) || in kmemleak_load_module()
2866 (info->sechdrs[i].sh_flags & SHF_EXECINSTR)) in kmemleak_load_module()
3071 shdr->sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
3076 info->sechdrs[info->index.vers].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
3077 info->sechdrs[info->index.info].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
3349 if (!(shdr->sh_flags & SHF_ALLOC)) in move_module()
3476 info->sechdrs[info->index.pcpu].sh_flags &= ~(unsigned long)SHF_ALLOC; in layout_and_allocate()
3485 info->sechdrs[ndx].sh_flags |= SHF_RO_AFTER_INIT; in layout_and_allocate()
3494 info->sechdrs[ndx].sh_flags |= SHF_RO_AFTER_INIT; in layout_and_allocate()