| /linux/tools/perf/util/ |
| H A D | genelf.c | 115 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 149 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 271 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in jit_write_elf() 320 shdr->sh_flags = 0; in jit_write_elf() 356 shdr->sh_flags = 0; in jit_write_elf() 401 shdr->sh_flags = 0; in jit_write_elf() 446 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()
|
| H A D | symbol-elf.c | 1325 if (!is_exe_text(shdr.sh_flags)) 1460 if (kmodule && adjust_kernel_syms && is_exe_text(shdr->sh_flags) && in dso__process_kernel_symbol() 1702 if (!(shdr.sh_flags & SHF_ALLOC)) in dso__load_sym_internal() 2897 if ((shdr.sh_type != SHT_NOTE) || (shdr.sh_flags & SHF_ALLOC)) {
|
| /linux/arch/loongarch/kernel/ |
| H A D | module-sections.c | 146 if (!(dst_sec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections() 154 got_sec->sh_flags = SHF_ALLOC; in module_frob_arch_sections() 162 plt_sec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 170 plt_idx_sec->sh_flags = SHF_ALLOC; in module_frob_arch_sections() 178 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
| /linux/arch/arm64/kernel/ |
| H A D | module-plts.c | 326 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections() 348 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 356 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 364 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 371 init_tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
| /linux/arch/arm/kernel/ |
| H A D | module-plts.c | 237 s->sh_flags |= SHF_EXECINSTR; in module_frob_arch_sections() 260 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections() 275 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 283 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/arch/mips/kernel/ |
| H A D | vpe.c | 207 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections() 208 || (s->sh_flags & masks[m][1]) 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()
|
| /linux/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | fw.h | 45 __le32 sh_flags; member
|
| H A D | fw.c | 86 shdr->sh_flags = le32_to_cpu(p->sh_flags); in mm81x_fw_get_section_header()
|
| /linux/arch/arm64/kernel/pi/ |
| H A D | relacheck.c | 88 flags = swab_elfxword(shdr[info].sh_flags); in main()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ |
| H A D | gh100.c | 212 if (shdr[i].sh_flags != SHF_STRINGS) in elf_validate_sections() 217 if (shdr[i].sh_flags != FMC_SHF_FLAGS) in elf_validate_sections()
|
| /linux/kernel/module/ |
| H A D | main.c | 244 if ((shdr->sh_flags & SHF_ALLOC) in find_sec() 1626 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC) && in apply_relocations() 1630 if (info->sechdrs[i].sh_flags & SHF_RELA_LIVEPATCH) in apply_relocations() 1716 if ((s->sh_flags & masks[m][0]) != masks[m][0] in __layout_sections() 1717 || (s->sh_flags & masks[m][1]) in __layout_sections() 2154 if (!(shdr->sh_flags & SHF_ALLOC)) { in elf_validity_cache_index_mod() 2561 info->sechdrs[info->index.vers].sh_flags &= ~(unsigned long)SHF_ALLOC; 2562 info->sechdrs[info->index.vers_ext_crc].sh_flags &= 2564 info->sechdrs[info->index.vers_ext_name].sh_flags &= 2566 info->sechdrs[info->index.info].sh_flags [all...] |
| /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 | 282 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 491 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/tools/lib/bpf/ |
| H A D | linker.c | 419 sec->shdr->sh_flags = SHF_STRINGS; in init_output_elf() 459 sec->shdr->sh_flags = 0; in init_output_elf() 883 if (sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_sanity_check_elf() 1051 if (link_sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_sanity_check_elf_relos() 1176 shdr->sh_flags = src_sec->shdr->sh_flags; in init_sec() 1220 if (dst->shdr->sh_flags != src->shdr->sh_flags) { in secs_match() 1246 (sec->shdr->sh_flags & SHF_EXECINSTR); in is_exec_sec() 2262 if (src_linked_sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_append_elf_relos() 2844 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/include/objtool/ |
| H A D | warn.h | 22 bool is_text = (sec->sh.sh_flags & SHF_EXECINSTR); in offstr()
|
| /linux/arch/mips/boot/ |
| H A D | elf2ecoff.c | 210 s->sh_flags = swab32(s->sh_flags); in convert_elf_shdrs()
|
| /linux/scripts/mod/ |
| H A D | modpost.c | 506 sechdrs[i].sh_flags = TO_NATIVE(sechdrs[i].sh_flags); in parse_elf() 790 !(sechdr->sh_flags & SHF_ALLOC) && in check_section() 1027 return (elf->sechdrs[secndx].sh_flags & SHF_EXECINSTR) != 0; in is_executable_section()
|
| /linux/tools/objtool/ |
| H A D | klp-diff.c | 933 patched_sec->sh.sh_flags); in klp_reloc_needed() 2206 patched_sec->sh.sh_flags);
|
| /linux/arch/sh/kernel/ |
| H A D | dwarf.c | 1100 if ((sechdrs[i].sh_flags & SHF_ALLOC) in module_dwarf_finalize()
|
| /linux/arch/parisc/kernel/ |
| H A D | module.c | 861 && (sechdrs[i].sh_flags & SHF_ALLOC)) { in module_finalize()
|
| /linux/kernel/livepatch/ |
| H A D | core.c | 836 if (!(sec->sh_flags & SHF_RELA_LIVEPATCH)) in klp_write_object_relocs()
|