Lines Matching refs:sh_flags
352 if ((shdr->sh_flags & SHF_ALLOC) in find_sec()
1451 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty()
2316 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC)) in apply_relocations()
2320 if (info->sechdrs[i].sh_flags & SHF_RELA_LIVEPATCH) in apply_relocations()
2382 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections()
2383 || (s->sh_flags & masks[m][1]) in layout_sections()
2415 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections()
2416 || (s->sh_flags & masks[m][1]) in layout_sections()
2559 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type()
2561 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC in elf_type()
2563 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) in elf_type()
2565 else if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
2571 if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
2599 if (!(sec->sh_flags & SHF_ALLOC) in is_core_symbol()
2601 || !(sec->sh_flags & SHF_EXECINSTR) in is_core_symbol()
2624 symsect->sh_flags |= SHF_ALLOC; in layout_symtab()
2649 strsect->sh_flags |= SHF_ALLOC; in layout_symtab()
2747 if (!(info->sechdrs[i].sh_flags & SHF_ALLOC) || in kmemleak_load_module()
2748 !(info->sechdrs[i].sh_flags & SHF_WRITE) || in kmemleak_load_module()
2749 (info->sechdrs[i].sh_flags & SHF_EXECINSTR)) in kmemleak_load_module()
2926 shdr->sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
2931 info->sechdrs[info->index.vers].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
2932 info->sechdrs[info->index.info].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
3180 if (!(shdr->sh_flags & SHF_ALLOC)) in move_module()
3310 info->sechdrs[info->index.pcpu].sh_flags &= ~(unsigned long)SHF_ALLOC; in layout_and_allocate()
3319 info->sechdrs[ndx].sh_flags |= SHF_RO_AFTER_INIT; in layout_and_allocate()