/third_party/elfutils/libelf/ |
H A D | elf_compress_gnu.c | 59 Elf64_Xword sh_flags; in elf_compress_gnu() local 68 sh_flags = shdr->sh_flags; in elf_compress_gnu() 78 sh_flags = shdr->sh_flags; in elf_compress_gnu() 85 if ((sh_flags & SHF_ALLOC) != 0 || (sh_flags & SHF_COMPRESSED)) in elf_compress_gnu() 99 // int compressed = (sh_flags & SHF_COMPRESSED); in elf_compress_gnu() 121 sh_flags won't have a SHF_COMPRESSED hint in the GNU format. in elf_compress_gnu() 186 sh_flags wo in elf_compress_gnu() [all...] |
H A D | elf_compress.c | 360 Elf64_Xword sh_flags; in elf_compress() local 369 sh_flags = shdr->sh_flags; in elf_compress() 379 sh_flags = shdr->sh_flags; in elf_compress() 384 if ((sh_flags & SHF_ALLOC) != 0) in elf_compress() 396 int compressed = (sh_flags & SHF_COMPRESSED); in elf_compress() 460 shdr->sh_flags |= SHF_COMPRESSED; in elf_compress() 467 shdr->sh_flags |= SHF_COMPRESSED; in elf_compress() 511 shdr->sh_flags in elf_compress() [all...] |
H A D | elf-knowledge.h | 39 (((shdr)->sh_flags & SHF_ALLOC) == 0 \ 62 || ((Shdr)->sh_flags & SHF_INFO_LINK) != 0)
|
H A D | elf32_getchdr.c | 51 if ((shdr->sh_flags & SHF_ALLOC) != 0) in ElfW2() 64 if ((shdr->sh_flags & SHF_COMPRESSED) == 0) in ElfW2()
|
H A D | gelf_update_shdr.c | 63 if (unlikely (src->sh_flags > 0xffffffffull) in gelf_update_shdr() 78 COPY (sh_flags); in gelf_update_shdr()
|
/kernel/linux/linux-6.6/kernel/module/ |
H A D | debug_kmemleak.c | 22 if (!(info->sechdrs[i].sh_flags & SHF_ALLOC) || in kmemleak_load_module() 23 !(info->sechdrs[i].sh_flags & SHF_WRITE) || in kmemleak_load_module() 24 (info->sechdrs[i].sh_flags & SHF_EXECINSTR)) in kmemleak_load_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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/third_party/elfutils/backends/ |
H A D | alpha_symbol.c | 81 alpha_machine_section_flag_check (GElf_Xword sh_flags) in alpha_machine_section_flag_check() argument 83 return (sh_flags &~ (SHF_ALPHA_GPREL)) == 0; in alpha_machine_section_flag_check() 92 if ((shdr->sh_flags in alpha_check_special_section()
|
H A D | ia64_symbol.c | 94 ia64_machine_section_flag_check (GElf_Xword sh_flags) in ia64_machine_section_flag_check() argument 96 return (sh_flags &~ (SHF_IA_64_SHORT | SHF_IA_64_NORECOV)) == 0; in ia64_machine_section_flag_check()
|
/third_party/elfutils/src/ |
H A D | elfcompress.c | 450 && (shdr->sh_flags & SHF_COMPRESSED) == 0 in process_file() 457 && (shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file() 469 && (shdr->sh_flags & SHF_ALLOC) == 0) in process_file() 511 if ((shdr->sh_flags & SHF_ALLOC) != 0) in process_file() 691 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file() 713 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in process_file() 777 if ((shdr->sh_flags & SHF_COMPRESSED) == 0) in process_file() 909 if ((shdr->sh_flags == SHF_COMPRESSED) != 0) in process_file() 1020 shdr->sh_flags = 0; in process_file() 1069 if ((shdr->sh_flags in process_file() [all...] |
H A D | unstrip.c | 759 /* Sort by sh_flags as an arbitrary ordering. */ in compare_unalloc_sections() 760 if (shdr1->sh_flags < shdr2->sh_flags) in compare_unalloc_sections() 762 if (shdr1->sh_flags > shdr2->sh_flags) in compare_unalloc_sections() 786 if ((s1->shdr.sh_flags ^ s2->shdr.sh_flags) & SHF_ALLOC) in compare_sections() 787 return (s1->shdr.sh_flags & SHF_ALLOC) ? -1 : 1; in compare_sections() 789 return ((s1->shdr.sh_flags & SHF_ALLOC) in compare_sections() 985 return (sections_flags_match (sections[i].shdr.sh_flags, shd in sections_match() [all...] |
H A D | elflint.c | 845 if ((destshdr->sh_flags & SHF_TLS) == 0) in check_symtab() 1283 if ((((*destshdrp)->sh_flags & SHF_MERGE) != 0) in check_reloc_shdr() 1284 && ((*destshdrp)->sh_flags & SHF_STRINGS) != 0) in check_reloc_shdr() 1386 || (relshdr->sh_flags & SHF_ALLOC) != 0) in check_one_reloc() 1453 || (relshdr->sh_flags & SHF_ALLOC) != 0) in check_one_reloc() 2343 if ((shdr->sh_flags & SHF_ALLOC) == 0) in check_hash() 2651 if (shdr->sh_flags != 0) in check_group() 2652 ERROR (_("section [%2d] '%s': sh_flags not zero\n"), in check_group() 2674 ERROR (_("section [%2d] '%s': sh_flags not set correctly\n"), in check_group() 2751 if ((refshdr->sh_flags in check_group() 3935 GElf_Xword sh_flags = shdr->sh_flags & ~(GElf_Xword) ALL_SH_FLAGS; check_sections() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_irq.c | 109 unsigned long sh_flags = 0; in drm_irq_install() local 126 sh_flags = IRQF_SHARED; in drm_irq_install() 129 sh_flags, dev->driver->name, dev); in drm_irq_install()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_irq.c | 72 unsigned long sh_flags = 0; in drm_legacy_irq_install() local 89 sh_flags = IRQF_SHARED; in drm_legacy_irq_install() 92 sh_flags, dev->driver->name, dev); in drm_legacy_irq_install()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | genelf.c | 197 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 231 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 333 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in jit_write_elf() 378 shdr->sh_flags = 0; in jit_write_elf() 414 shdr->sh_flags = 0; in jit_write_elf() 457 shdr->sh_flags = 0; in jit_write_elf() 500 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
|
/kernel/linux/linux-6.6/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() 381 shdr->sh_flags = 0; in jit_write_elf() 417 shdr->sh_flags = 0; in jit_write_elf() 460 shdr->sh_flags = 0; in jit_write_elf() 503 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
|
/third_party/elfutils/libdwfl/ |
H A D | offline.c | 55 assert (shdr->sh_flags & SHF_ALLOC); in dwfl_offline_section_address() 76 if (sh->sh_flags & SHF_ALLOC) in dwfl_offline_section_address() 87 if ((main_shdr->sh_flags & SHF_ALLOC) && skip_alloc-- == 0) in dwfl_offline_section_address() 89 assert (main_shdr->sh_flags == shdr->sh_flags); in dwfl_offline_section_address()
|
H A D | dwfl_module_getdwarf.c | 241 GElf_Xword sh_flags, in consider_shdr() 246 if ((sh_flags & SHF_ALLOC) in consider_shdr() 288 && !(shdr->sh_flags & SHF_ALLOC) in find_prelink_address_sync() 486 consider_shdr (main_interp, sh->sh_type, sh->sh_flags, in find_prelink_address_sync() 499 (*s32)[i].sh_flags, (*s32)[i].sh_addr, in find_prelink_address_sync() 507 (*s64)[i].sh_flags, (*s64)[i].sh_addr, in find_prelink_address_sync() 1169 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in find_symtab() 1185 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in find_symtab() 1198 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in find_symtab() 1252 if ((shdr->sh_flags in find_symtab() 239 consider_shdr(GElf_Addr interp, GElf_Word sh_type, GElf_Xword sh_flags, GElf_Addr sh_addr, GElf_Xword sh_size, GElf_Addr *phighest) consider_shdr() argument [all...] |
/third_party/elfutils/tests/ |
H A D | update4.c | 133 shdr->sh_flags = SHF_ALLOC | SHF_EXECINSTR; in main() 169 shdr->sh_flags = SHF_ALLOC | SHF_WRITE; in main() 205 shdr->sh_flags = SHF_ALLOC | SHF_EXECINSTR; in main() 241 shdr->sh_flags = SHF_ALLOC | SHF_EXECINSTR; in main() 278 shdr->sh_flags = 0; in main()
|
H A D | asm-tst1.c | 193 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_EXECINSTR)) in main() 194 || (cnt == 2 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main() 195 || (cnt == 3 && shdr->sh_flags != 0)) in main()
|
H A D | elfstrmerge.c | 231 if ((shdrstrshdr->sh_flags & SHF_ALLOC) != 0) in main() 256 if ((symtabshdr->sh_flags & SHF_ALLOC) != 0) in main() 274 if ((strtabshdr->sh_flags & SHF_ALLOC) != 0) in main() 325 if ((shdr->sh_flags & SHF_ALLOC) != 0) in main() 477 newshdr.sh_flags = shdr->sh_flags; in main() 613 if ((shdr->sh_flags & SHF_ALLOC) != 0) in main()
|