/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/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() 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 D | internal.h | 354 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty()
|
/openbmc/linux/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()
|
/openbmc/linux/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 | 470 if (!(s->sh_flags & SHF_ALLOC) || in module_finalize()
|
/openbmc/u-boot/tools/ |
H A D | zynqmpbif.c | 561 !(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 D | mips-relocs.c | 340 skip = !(shdr_field(j, sh_flags) & SHF_ALLOC); in main()
|
/openbmc/linux/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()
|
/openbmc/u-boot/cmd/ |
H A D | elf.c | 98 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 D | pfe_firmware.c | 68 if (!(be32_to_cpu(shdr->sh_flags) & (SHF_WRITE | SHF_ALLOC | in pfe_load_elf()
|
/openbmc/linux/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()
|
/openbmc/linux/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
|
/openbmc/linux/include/uapi/linux/ |
H A D | elf.h | 292 #define SHF_ALLOC 0x2 macro
|
/openbmc/u-boot/include/ |
H A D | elf.h | 335 #define SHF_ALLOC 0x2 /* occupies memory */ macro
|
/openbmc/linux/arch/x86/tools/ |
H A D | relocs.c | 653 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 D | relocs.c | 485 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in walk_relocs()
|
/openbmc/linux/scripts/ |
H A D | recordmcount.h | 310 mcsec.sh_flags = _w(SHF_ALLOC); in append_func()
|
/openbmc/linux/arch/sh/kernel/ |
H A D | dwarf.c | 1100 if ((sechdrs[i].sh_flags & SHF_ALLOC) in module_dwarf_finalize()
|
/openbmc/linux/arch/parisc/kernel/ |
H A D | module.c | 873 && (sechdrs[i].sh_flags & SHF_ALLOC)) { in module_finalize()
|