Home
last modified time | relevance | path

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

12

/linux/tools/perf/util/
H A Dgenelf.c115 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 Dgenelf_debug.c541 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 Dsymbol-elf.c1325 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 Dmodule-sections.c146 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 Dmodule-plts.c326 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 Dmodule-plts.c237 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 Dmodule.c431 if (!(s->sh_flags & SHF_ALLOC) || in module_finalize()
/linux/arch/mips/kernel/
H A Dvpe.c207 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 Dfw.h45 __le32 sh_flags; member
H A Dfw.c86 shdr->sh_flags = le32_to_cpu(p->sh_flags); in mm81x_fw_get_section_header()
/linux/arch/arm64/kernel/pi/
H A Drelacheck.c88 flags = swab_elfxword(shdr[info].sh_flags); in main()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dgh100.c212 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 Dmain.c244 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 Drecordmcount.h310 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 Drelocs.c282 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 Dremoteproc_elf_helpers.h80 ELF_GEN_FIELD_GET_SET(shdr, sh_flags, u32) in ELF_GEN_FIELD_GET_SET()
/linux/tools/lib/bpf/
H A Dlinker.c419 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 Dloongson3-llsc-check.c290 if (!(sh->sh_flags & SHF_EXECINSTR)) in main()
/linux/tools/objtool/include/objtool/
H A Dwarn.h22 bool is_text = (sec->sh.sh_flags & SHF_EXECINSTR); in offstr()
/linux/arch/mips/boot/
H A Delf2ecoff.c210 s->sh_flags = swab32(s->sh_flags); in convert_elf_shdrs()
/linux/scripts/mod/
H A Dmodpost.c506 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 Dklp-diff.c933 patched_sec->sh.sh_flags); in klp_reloc_needed()
2206 patched_sec->sh.sh_flags);
/linux/arch/sh/kernel/
H A Ddwarf.c1100 if ((sechdrs[i].sh_flags & SHF_ALLOC) in module_dwarf_finalize()
/linux/arch/parisc/kernel/
H A Dmodule.c861 && (sechdrs[i].sh_flags & SHF_ALLOC)) { in module_finalize()
/linux/kernel/livepatch/
H A Dcore.c836 if (!(sec->sh_flags & SHF_RELA_LIVEPATCH)) in klp_write_object_relocs()

12