/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | module-sections.c | 155 got_sec->sh_flags = SHF_ALLOC; in module_frob_arch_sections() 163 plt_sec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 171 plt_idx_sec->sh_flags = SHF_ALLOC; in module_frob_arch_sections() 179 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | module-sections.c | 155 got_sec->sh_flags = SHF_ALLOC; in module_frob_arch_sections() 163 plt_sec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 171 plt_idx_sec->sh_flags = SHF_ALLOC; in module_frob_arch_sections() 179 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
/kernel/linux/linux-5.10/arch/riscv/kernel/ |
H A D | module-sections.c | 139 mod->arch.plt.shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 146 mod->arch.got.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections() 153 mod->arch.got_plt.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | module-sections.c | 139 mod->arch.plt.shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 146 mod->arch.got.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections() 153 mod->arch.got_plt.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | vpe.c | 178 /* Lay out the SHF_ALLOC sections in a way not dissimilar to how ld 189 {SHF_EXECINSTR | SHF_ALLOC, ARCH_SHF_SMALL}, in layout_sections() 190 {SHF_ALLOC, SHF_WRITE | ARCH_SHF_SMALL}, in layout_sections() 191 {SHF_WRITE | SHF_ALLOC, ARCH_SHF_SMALL}, in layout_sections() 192 {ARCH_SHF_SMALL | SHF_ALLOC, 0} in layout_sections() 653 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in vpe_elfload() 683 if (!(sechdrs[info].sh_flags & SHF_ALLOC)) in vpe_elfload()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | genelf.c | 197 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 231 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 333 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in jit_write_elf() 500 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
|
/kernel/linux/linux-6.6/kernel/module/ |
H A D | kallsyms.c | 56 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC && in elf_type() 96 if (!(sec->sh_flags & SHF_ALLOC) in is_core_symbol() 123 symsect->sh_flags |= SHF_ALLOC; in layout_symtab() 150 strsect->sh_flags |= SHF_ALLOC; in layout_symtab()
|
H A D | debug_kmemleak.c | 22 if (!(info->sechdrs[i].sh_flags & SHF_ALLOC) || in kmemleak_load_module()
|
H A D | main.c | 189 if ((shdr->sh_flags & SHF_ALLOC) in find_sec() 216 /* Find a module section: 0 means not found. Ignores SHF_ALLOC flag. */ 231 * Ignores SHF_ALLOC flag. 1452 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC)) in apply_relocations() 1514 { SHF_EXECINSTR | SHF_ALLOC, ARCH_SHF_SMALL }, in __layout_sections() 1515 { SHF_ALLOC, SHF_WRITE | ARCH_SHF_SMALL }, in __layout_sections() 1516 { SHF_RO_AFTER_INIT | SHF_ALLOC, ARCH_SHF_SMALL }, in __layout_sections() 1517 { SHF_WRITE | SHF_ALLOC, ARCH_SHF_SMALL }, in __layout_sections() 1518 { ARCH_SHF_SMALL | SHF_ALLOC, 0 } in __layout_sections() 1558 * Lay out the SHF_ALLOC section [all...] |
H A D | internal.h | 354 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | genelf.c | 199 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 233 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 335 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in jit_write_elf() 503 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | vpe.c | 178 /* Lay out the SHF_ALLOC sections in a way not dissimilar to how ld 189 {SHF_EXECINSTR | SHF_ALLOC, ARCH_SHF_SMALL}, in layout_sections() 190 {SHF_ALLOC, SHF_WRITE | ARCH_SHF_SMALL}, in layout_sections() 191 {SHF_WRITE | SHF_ALLOC, ARCH_SHF_SMALL}, in layout_sections() 192 {ARCH_SHF_SMALL | SHF_ALLOC, 0} in layout_sections() 654 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in vpe_elfload() 684 if (!(sechdrs[info].sh_flags & SHF_ALLOC)) in vpe_elfload()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | module.c | 360 if ((shdr->sh_flags & SHF_ALLOC) in find_sec() 1543 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty() 2446 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC)) in apply_relocations() 2487 /* Lay out the SHF_ALLOC sections in a way not dissimilar to how ld 2497 { SHF_EXECINSTR | SHF_ALLOC, ARCH_SHF_SMALL }, in layout_sections() 2498 { SHF_ALLOC, SHF_WRITE | ARCH_SHF_SMALL }, in layout_sections() 2499 { SHF_RO_AFTER_INIT | SHF_ALLOC, ARCH_SHF_SMALL }, in layout_sections() 2500 { SHF_WRITE | SHF_ALLOC, ARCH_SHF_SMALL }, in layout_sections() 2501 { ARCH_SHF_SMALL | SHF_ALLOC, 0 } in layout_sections() 2707 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC in elf_type() [all...] |
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | module-plts.c | 356 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 364 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 372 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | module-plts.c | 346 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 354 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 362 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | module-plts.c | 268 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 276 mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | module-plts.c | 263 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 271 mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A D | module.c | 467 mod->arch.core_plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 471 mod->arch.init_plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 475 mod->arch.got->sh_flags = ARCH_SHF_SMALL | SHF_ALLOC; in module_frob_arch_sections() 479 mod->arch.opd->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A D | module.c | 467 mod->arch.core_plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 471 mod->arch.init_plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 475 mod->arch.got->sh_flags = ARCH_SHF_SMALL | SHF_ALLOC; in module_frob_arch_sections() 479 mod->arch.opd->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | kexec_file.c | 824 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_kbuf() 899 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_sechdrs() 975 if (!(section->sh_flags & SHF_ALLOC)) in kexec_apply_relocations()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | elf.h | 291 #define SHF_ALLOC 0x2 macro
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | elf.h | 292 #define SHF_ALLOC 0x2 macro
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | elf.h | 244 #define SHF_ALLOC 0x2 macro
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | elf.h | 244 #define SHF_ALLOC 0x2 macro
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | elf.h | 230 #define SHF_ALLOC 0x2 macro
|