/linux/kernel/module/ |
H A D | kallsyms.c | 54 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type() 56 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC && in elf_type() 58 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) in elf_type() 60 else if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type() 66 if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type() 96 if (!(sec->sh_flags & SHF_ALLOC) in is_core_symbol() 98 || !(sec->sh_flags & SHF_EXECINSTR) 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 | strict_rwx.c | 91 if ((sechdrs[i].sh_flags & shf_wx) == shf_wx) { in module_enforce_rwx_sections()
|
H A D | main.c | 191 if ((shdr->sh_flags & SHF_ALLOC) in find_sec() 1477 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC)) in apply_relocations() 1480 if (info->sechdrs[i].sh_flags & SHF_RELA_LIVEPATCH) in apply_relocations() 1567 if ((s->sh_flags & masks[m][0]) != masks[m][0] in __layout_sections() 1568 || (s->sh_flags & masks[m][1]) in __layout_sections() 1818 if (shdr->sh_flags & SHF_ALLOC) { in elf_validity_cache_copy() 1883 if (!(shdr->sh_flags & SHF_ALLOC)) { in elf_validity_cache_copy() 2020 info->sechdrs[info->index.vers].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers() 2021 info->sechdrs[info->index.info].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers() 2271 if (!(shdr->sh_flags & SHF_ALLOC)) in move_module() [all …]
|
H A D | internal.h | 354 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty()
|
/linux/arch/loongarch/kernel/ |
H A D | module-sections.c | 147 if (!(dst_sec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections() 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/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() 376 shdr->sh_flags = 0; in jit_write_elf() 412 shdr->sh_flags = 0; in jit_write_elf() 455 shdr->sh_flags = 0; in jit_write_elf() 498 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
|
H A D | genelf_debug.c | 541 shdr->sh_flags = 0; in jit_add_debug_info() 575 shdr->sh_flags = 0; in jit_add_debug_info() 609 shdr->sh_flags = 0; in jit_add_debug_info()
|
/linux/arch/riscv/kernel/ |
H A D | module-sections.c | 132 if (!(dst_sec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections() 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()
|
/linux/arch/arm64/kernel/ |
H A D | module-plts.c | 323 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections() 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/arch/arm/kernel/ |
H A D | module-plts.c | 248 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections() 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()
|
/linux/arch/s390/tools/ |
H A D | relocs.c | 204 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 307 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in walk_relocs()
|
/linux/arch/mips/kernel/ |
H A D | vpe.c | 206 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections() 207 || (s->sh_flags & masks[m][1]) 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/tools/objtool/include/objtool/ |
H A D | warn.h | 21 bool is_text = (sec->sh.sh_flags & SHF_EXECINSTR); in offstr()
|
/linux/include/uapi/linux/ |
H A D | elf.h | 311 Elf32_Word sh_flags; member 324 Elf64_Xword sh_flags; /* Miscellaneous section attributes */ member
|
/linux/arch/arm64/kernel/pi/ |
H A D | relacheck.c | 88 flags = swab_elfxword(shdr[info].sh_flags); in main()
|
/linux/kernel/ |
H A D | kexec_file.c | 848 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_kbuf() 923 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_sechdrs() 946 if (sechdrs[i].sh_flags & SHF_EXECINSTR && in kexec_purgatory_setup_sechdrs() 999 if (!(section->sh_flags & SHF_ALLOC)) in kexec_apply_relocations()
|
/linux/scripts/ |
H A D | recordmcount.h | 310 mcsec.sh_flags = _w(SHF_ALLOC); in append_func() 325 mcsec.sh_flags = 0; in append_func() 568 !(_w(txthdr->sh_flags) & SHF_EXECINSTR)) in __has_rel_mcount()
|
/linux/arch/mips/boot/tools/ |
H A D | relocs.c | 281 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 485 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in walk_relocs()
|
/linux/drivers/remoteproc/ |
H A D | remoteproc_elf_helpers.h | 80 ELF_GEN_FIELD_GET_SET(shdr, sh_flags, u32) in ELF_GEN_FIELD_GET_SET()
|
/linux/arch/x86/tools/ |
H A D | relocs.c | 456 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 645 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in print_absolute_relocs() 739 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in walk_relocs()
|
/linux/tools/lib/bpf/ |
H A D | linker.c | 371 sec->shdr->sh_flags = SHF_STRINGS; in init_output_elf() 409 sec->shdr->sh_flags = 0; in init_output_elf() 754 if (sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_sanity_check_elf() 922 if (link_sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_sanity_check_elf_relos() 1047 shdr->sh_flags = src_sec->shdr->sh_flags; in init_sec() 1091 if (dst->shdr->sh_flags != src->shdr->sh_flags) { in secs_match() 2108 if (src_linked_sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_append_elf_relos() 2681 shdr->sh_flags = 0; in emit_elf_data_sec()
|
/linux/arch/mips/tools/ |
H A D | loongson3-llsc-check.c | 290 if (!(sh->sh_flags & SHF_EXECINSTR)) in main()
|
/linux/tools/objtool/ |
H A D | elf.c | 893 if (!(insn_sec->sh.sh_flags & SHF_EXECINSTR)) { in elf_init_reloc_text_sym() 923 if (sym->sec && (sec->sh.sh_flags & SHF_EXECINSTR)) { in elf_init_reloc_data_sym() 1145 sec->sh.sh_flags = SHF_ALLOC; in elf_create_section() 1193 rsec->sh.sh_flags = SHF_INFO_LINK; in elf_create_rela_section()
|
/linux/tools/bpf/resolve_btfids/ |
H A D | main.c | 309 if (!(sh->sh_flags & SHF_COMPRESSED)) in compressed_section_fix() 401 (int) sh.sh_link, (unsigned long) sh.sh_flags, in elf_collect()
|
/linux/arch/mips/boot/ |
H A D | elf2ecoff.c | 210 s->sh_flags = swab32(s->sh_flags); in convert_elf_shdrs()
|