| /linux-6.15/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()
|
| /linux-6.15/arch/riscv/kernel/ |
| H A D | module-sections.c | 140 mod->arch.plt.shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 147 mod->arch.got.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections() 154 mod->arch.got_plt.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
|
| /linux-6.15/arch/arm64/kernel/pi/ |
| H A D | relacheck.c | 89 if ((flags & (SHF_ALLOC | SHF_EXECINSTR)) != SHF_ALLOC) in main()
|
| /linux-6.15/tools/perf/util/ |
| H A D | genelf.c | 194 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 228 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 330 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in jit_write_elf() 498 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
|
| H A D | symbol-elf.c | 1399 return (flags & (SHF_ALLOC | SHF_EXECINSTR)) == (SHF_ALLOC | SHF_EXECINSTR); in is_exe_text() 1771 if (!(shdr.sh_flags & SHF_ALLOC)) in dso__load_sym_internal() 2962 if ((shdr.sh_type != SHT_NOTE) || (shdr.sh_flags & SHF_ALLOC)) { in construct_sdt_notes_list()
|
| /linux-6.15/arch/mips/kernel/ |
| H A D | vpe.c | 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()
|
| /linux-6.15/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 | main.c | 191 if ((shdr->sh_flags & SHF_ALLOC) in find_sec() 1509 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC)) in apply_relocations() 1571 { SHF_EXECINSTR | SHF_ALLOC, ARCH_SHF_SMALL }, in __layout_sections() 1572 { SHF_ALLOC, SHF_WRITE | ARCH_SHF_SMALL }, in __layout_sections() 1573 { SHF_RO_AFTER_INIT | SHF_ALLOC, ARCH_SHF_SMALL }, in __layout_sections() 1574 { SHF_WRITE | SHF_ALLOC, ARCH_SHF_SMALL }, in __layout_sections() 1575 { ARCH_SHF_SMALL | SHF_ALLOC, 0 } in __layout_sections() 1980 if (!(shdr->sh_flags & SHF_ALLOC)) { in elf_validity_cache_index_mod() 2383 ~(unsigned long)SHF_ALLOC; in rewrite_section_headers() 2385 ~(unsigned long)SHF_ALLOC; in rewrite_section_headers() [all …]
|
| H A D | internal.h | 351 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty()
|
| /linux-6.15/arch/arm64/kernel/ |
| H A D | module-plts.c | 345 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 353 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 361 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
| /linux-6.15/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()
|
| H A D | module.c | 431 if (!(s->sh_flags & SHF_ALLOC) || in module_finalize()
|
| /linux-6.15/kernel/ |
| H A D | kexec_file.c | 860 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_kbuf() 935 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_sechdrs() 1011 if (!(section->sh_flags & SHF_ALLOC)) in kexec_apply_relocations()
|
| /linux-6.15/Documentation/livepatch/ |
| H A D | module-elf-format.rst | 113 at patch module load time. These sections must also be marked with SHF_ALLOC, 115 be copied into memory along with the other SHF_ALLOC sections). 166 characteristics. Notice that they are marked SHF_ALLOC ("A") so that they will
|
| /linux-6.15/tools/include/uapi/linux/ |
| H A D | elf.h | 300 #define SHF_ALLOC 0x2 macro
|
| /linux-6.15/include/uapi/linux/ |
| H A D | elf.h | 300 #define SHF_ALLOC 0x2 macro
|
| /linux-6.15/arch/x86/tools/ |
| H A D | relocs.c | 620 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in print_absolute_relocs() 714 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in walk_relocs()
|
| /linux-6.15/arch/s390/tools/ |
| H A D | relocs.c | 307 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in walk_relocs()
|
| /linux-6.15/arch/mips/boot/tools/ |
| H A D | relocs.c | 490 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in walk_relocs()
|
| /linux-6.15/scripts/ |
| H A D | recordmcount.h | 310 mcsec.sh_flags = _w(SHF_ALLOC); in append_func()
|
| /linux-6.15/arch/sh/kernel/ |
| H A D | dwarf.c | 1100 if ((sechdrs[i].sh_flags & SHF_ALLOC) in module_dwarf_finalize()
|
| /linux-6.15/arch/parisc/kernel/ |
| H A D | module.c | 861 && (sechdrs[i].sh_flags & SHF_ALLOC)) { in module_finalize()
|
| /linux-6.15/tools/objtool/ |
| H A D | elf.c | 1142 sec->sh.sh_flags = SHF_ALLOC; in elf_create_section()
|
| /linux-6.15/scripts/mod/ |
| H A D | modpost.c | 766 !(sechdr->sh_flags & SHF_ALLOC) && in check_section()
|