Home
last modified time | relevance | path

Searched refs:SHF_ALLOC (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/linux/arch/loongarch/kernel/
H A Dmodule-sections.c155 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()
/openbmc/linux/arch/riscv/kernel/
H A Dmodule-sections.c139 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()
/openbmc/linux/tools/perf/util/
H A Dgenelf.c199 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()
/openbmc/linux/arch/mips/kernel/
H A Dvpe.c189 {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()
/openbmc/linux/kernel/module/
H A Dkallsyms.c56 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 Ddebug_kmemleak.c22 if (!(info->sechdrs[i].sh_flags & SHF_ALLOC) || in kmemleak_load_module()
H A Dmain.c189 if ((shdr->sh_flags & SHF_ALLOC) in find_sec()
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()
1800 if (shdr->sh_flags & SHF_ALLOC) { in elf_validity_cache_copy()
1865 if (!(shdr->sh_flags & SHF_ALLOC)) { in elf_validity_cache_copy()
2002 info->sechdrs[info->index.vers].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
[all …]
H A Dinternal.h354 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty()
/openbmc/linux/arch/arm64/kernel/
H A Dmodule-plts.c346 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()
/openbmc/linux/arch/arm/kernel/
H A Dmodule-plts.c263 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 Dmodule.c470 if (!(s->sh_flags & SHF_ALLOC) || in module_finalize()
/openbmc/u-boot/tools/
H A Dzynqmpbif.c561 !(shdr->sh_flags & SHF_ALLOC) || in elf2flat64()
585 !(shdr->sh_flags & SHF_ALLOC)) in elf2flat64()
609 !(shdr->sh_flags & SHF_ALLOC) || in elf2flat32()
633 !(shdr->sh_flags & SHF_ALLOC)) in elf2flat32()
H A Dmips-relocs.c340 skip = !(shdr_field(j, sh_flags) & SHF_ALLOC); in main()
/openbmc/linux/arch/ia64/kernel/
H A Dmodule.c467 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()
/openbmc/u-boot/cmd/
H A Delf.c98 if (!(shdr->sh_flags & SHF_ALLOC) || in load_elf64_image_shdr()
203 if (!(shdr->sh_flags & SHF_ALLOC) || in load_elf_image_shdr()
/openbmc/u-boot/drivers/net/pfe_eth/
H A Dpfe_firmware.c68 if (!(be32_to_cpu(shdr->sh_flags) & (SHF_WRITE | SHF_ALLOC | in pfe_load_elf()
/openbmc/linux/kernel/
H A Dkexec_file.c824 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()
/openbmc/linux/Documentation/livepatch/
H A Dmodule-elf-format.rst113 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
/openbmc/linux/include/uapi/linux/
H A Delf.h292 #define SHF_ALLOC 0x2 macro
/openbmc/u-boot/include/
H A Delf.h335 #define SHF_ALLOC 0x2 /* occupies memory */ macro
/openbmc/linux/arch/x86/tools/
H A Drelocs.c653 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) { in print_absolute_relocs()
746 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) { in walk_relocs()
/openbmc/linux/arch/mips/boot/tools/
H A Drelocs.c485 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in walk_relocs()
/openbmc/linux/scripts/
H A Drecordmcount.h310 mcsec.sh_flags = _w(SHF_ALLOC); in append_func()
/openbmc/linux/arch/sh/kernel/
H A Ddwarf.c1100 if ((sechdrs[i].sh_flags & SHF_ALLOC) in module_dwarf_finalize()
/openbmc/linux/arch/parisc/kernel/
H A Dmodule.c873 && (sechdrs[i].sh_flags & SHF_ALLOC)) { in module_finalize()

12