Home
last modified time | relevance | path

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

12345

/third_party/elfutils/libelf/
Delf_compress_gnu.c59 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()
Delf_compress.c360 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 &= ~SHF_COMPRESSED; in elf_compress()
518 shdr->sh_flags &= ~SHF_COMPRESSED; in elf_compress()
Delf-knowledge.h39 (((shdr)->sh_flags & SHF_ALLOC) == 0 \
62 || ((Shdr)->sh_flags & SHF_INFO_LINK) != 0)
Delf32_getchdr.c51 if ((shdr->sh_flags & SHF_ALLOC) != 0) in ElfW2()
64 if ((shdr->sh_flags & SHF_COMPRESSED) == 0) in ElfW2()
Dgelf_update_shdr.c63 if (unlikely (src->sh_flags > 0xffffffffull) in gelf_update_shdr()
78 COPY (sh_flags); in gelf_update_shdr()
Delf32_getshdr.c140 CONVERT_TO (shdr[cnt].sh_flags, notcvt[cnt].sh_flags); in ElfW2()
189 CONVERT (shdr[cnt].sh_flags); in ElfW2()
Delf_strptr.c131 if ((shdr->sh_flags & SHF_COMPRESSED) == 0) in elf_strptr()
157 if ((shdr->sh_flags & SHF_COMPRESSED) == 0) in elf_strptr()
/third_party/elfutils/backends/
Dalpha_symbol.c81 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()
Dia64_symbol.c94 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/
Delfcompress.c450 && (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 & SHF_COMPRESSED) != 0) in process_file()
[all …]
Delflint.c845 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()
2751 if ((refshdr->sh_flags & SHF_GROUP) == 0) in check_group()
3722 if (shdr->sh_flags != 0) in check_sections()
3810 if ((shdr->sh_flags & ~EXTRA_SHFLAGS) in check_sections()
[all …]
Dunstrip.c758 if (shdr1->sh_flags < shdr2->sh_flags) in compare_unalloc_sections()
760 if (shdr1->sh_flags > shdr2->sh_flags) in compare_unalloc_sections()
784 if ((s1->shdr.sh_flags ^ s2->shdr.sh_flags) & SHF_ALLOC) in compare_sections()
785 return (s1->shdr.sh_flags & SHF_ALLOC) ? -1 : 1; in compare_sections()
787 return ((s1->shdr.sh_flags & SHF_ALLOC) in compare_sections()
983 return (sections_flags_match (sections[i].shdr.sh_flags, shdr->sh_flags, in sections_match()
1099 && !(sec->shdr.sh_flags & SHF_ALLOC) in find_alloc_sections_prelink()
1188 COPY (sh_flags); in find_alloc_sections_prelink()
1200 if (sec->shdr.sh_flags & SHF_ALLOC) in find_alloc_sections_prelink()
1224 if (!(shdr->sh_flags & SHF_ALLOC)) in find_alloc_sections_prelink()
[all …]
Dsize.c410 if (name != NULL && (shdr->sh_flags & SHF_ALLOC) != 0) in show_sysv()
433 if ((shdr->sh_flags & SHF_ALLOC) != 0) in show_sysv()
482 if ((shdr->sh_flags & SHF_ALLOC) == 0) in show_sysv_one_line()
534 if ((shdr->sh_flags & SHF_ALLOC) == 0) in show_bsd()
537 if ((shdr->sh_flags & SHF_WRITE) == 0) in show_bsd()
/third_party/elfutils/libdwfl/
Doffline.c55 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()
Ddwfl_module_getdwarf.c241 GElf_Xword sh_flags, in consider_shdr() argument
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 & SHF_COMPRESSED) != 0) in find_symtab()
[all …]
Drelocate.c59 if (refshdr->sh_addr == 0 && (refshdr->sh_flags & SHF_ALLOC)) in __libdwfl_relocate_value()
90 if (refshdr->sh_flags & SHF_ALLOC) in __libdwfl_relocate_value()
137 && (shdr->sh_flags & SHF_COMPRESSED) != 0) in relocate_getsym()
245 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in resolve_symbol()
526 if ((tshdr->sh_flags & SHF_COMPRESSED) != 0) in relocate_section()
547 if ((shdr->sh_flags & SHF_COMPRESSED) != 0) in relocate_section()
/third_party/elfutils/tests/
Dupdate4.c133 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()
Dasm-tst1.c193 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()
Delfstrmerge.c231 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()
Delfputzdata.c83 || (shdr->sh_flags & SHF_ALLOC) != 0) in main()
87 else if ((shdr->sh_flags & SHF_COMPRESSED) != 0 in main()
Dasm-tst2.c209 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
210 || (cnt == 2 && shdr->sh_flags != 0)) in main()
Dasm-tst3.c209 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
210 || (cnt != 1 && shdr->sh_flags != 0)) in main()
Dasm-tst9.c243 if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE)) in main()
244 || (cnt == 2 && shdr->sh_flags != 0)) in main()
Dalldts.c145 shdr->sh_flags = SHF_ALLOC | SHF_WRITE; in main()
199 shdr->sh_flags = 0; in main()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DELFObjectFile.h484 return getSection(Sec)->sh_flags; in getSectionFlags()
743 return getSection(Sec)->sh_flags & ELF::SHF_COMPRESSED; in isSectionCompressed()
748 return getSection(Sec)->sh_flags & ELF::SHF_EXECINSTR; in isSectionText()
755 EShdr->sh_flags & ELF::SHF_ALLOC && in isSectionData()
756 !(EShdr->sh_flags & ELF::SHF_EXECINSTR); in isSectionData()
762 return EShdr->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE) && in isSectionBSS()
802 return getSection(Sec)->sh_flags & ELF::SHF_ALLOC && in isBerkeleyText()
803 (getSection(Sec)->sh_flags & ELF::SHF_EXECINSTR || in isBerkeleyText()
804 !(getSection(Sec)->sh_flags & ELF::SHF_WRITE)); in isBerkeleyText()
811 EShdr->sh_flags & ELF::SHF_ALLOC; in isBerkeleyData()

12345