Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/elftoolchain/libelf/
H A Dlibelf_chdr.c66 if ((sh32->sh_flags & SHF_ALLOC) != 0) { in _libelf_getchdr()
76 if ((sh32->sh_flags & SHF_COMPRESSED) == 0) { in _libelf_getchdr()
82 if ((sh64->sh_flags & SHF_ALLOC) != 0) { in _libelf_getchdr()
92 if ((sh64->sh_flags & SHF_COMPRESSED) == 0) { in _libelf_getchdr()
H A Dgelf_shdr.c73 d->sh_flags = (Elf64_Xword) sh32->sh_flags; in gelf_getshdr()
120 LIBELF_COPY_U32(sh32, s, sh_flags); in gelf_update_shdr()
H A Dlibelf_checksum.c83 if ((shdr.sh_flags & SHF_ALLOC) == 0 || in _libelf_checksum()
H A Delf_types.m4198 `sh_flags, WORD',
211 `sh_flags, XWORD',
/freebsd-14.2/contrib/elftoolchain/elfcopy/
H A Dpe.c156 else if (sh.sh_flags & SHF_ALLOC) in create_pe()
189 if (sh.sh_flags & SHF_WRITE) in create_pe()
191 if (sh.sh_flags & SHF_EXECINSTR) in create_pe()
194 if ((sh.sh_flags & SHF_ALLOC) && (psh.sh_char & 0xF0) == 0) in create_pe()
H A Dsections.c414 s->flags = ish.sh_flags; in create_scn()
432 (ish.sh_flags & SHF_ALLOC)) in create_scn()
478 if (((ish.sh_flags & SHF_ALLOC) || in create_scn()
1194 osh.sh_flags = 0; in copy_shdr()
1196 osh.sh_flags |= SHF_ALLOC; in copy_shdr()
1198 osh.sh_flags |= SHF_WRITE; in copy_shdr()
1200 osh.sh_flags |= SHF_EXECINSTR; in copy_shdr()
1213 osh.sh_flags = ish.sh_flags; in copy_shdr()
1222 osh.sh_flags |= SHF_INFO_LINK; in copy_shdr()
1320 osh.sh_flags = flags; in create_external_section()
[all …]
H A Dbinary.c77 if ((sh.sh_flags & SHF_ALLOC) == 0 || in create_binary()
103 if ((sh.sh_flags & SHF_ALLOC) == 0 || in create_binary()
/freebsd-14.2/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c168 dst->sh_flags = src->sh_flags; in shdr_to_gelf()
402 ctfsect.cts_flags = shp->sh_flags; in ctf_fdopen()
410 symsect.cts_flags = shp->sh_flags; in ctf_fdopen()
417 strsect.cts_flags = lhp->sh_flags; in ctf_fdopen()
/freebsd-14.2/contrib/elftoolchain/size/
H A Dsize.c761 if (!(shdr->sh_flags & SHF_ALLOC)) in berkeley_calc()
763 if ((shdr->sh_flags & SHF_ALLOC) && in berkeley_calc()
764 ((shdr->sh_flags & SHF_EXECINSTR) || in berkeley_calc()
765 !(shdr->sh_flags & SHF_WRITE))) in berkeley_calc()
767 else if ((shdr->sh_flags & SHF_ALLOC) && in berkeley_calc()
768 (shdr->sh_flags & SHF_WRITE) && in berkeley_calc()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DObjectFileELF.cpp942 if (header.sh_flags & SHF_ALLOC) in GetBaseAddress()
1699 if (H.sh_flags & SHF_EXECINSTR) in GetSectionType()
1729 if (H.sh_flags & SHF_ALLOC) in GetPermissions()
1731 if (H.sh_flags & SHF_WRITE) in GetPermissions()
1733 if (H.sh_flags & SHF_EXECINSTR) in GetPermissions()
1818 if ((H.sh_flags & SHF_ALLOC) && It.valid()) { in GetAddressInfo()
3318 s->Printf(" %8.8" PRIx64 " (", sh.sh_flags); in DumpELFSectionHeader()
3319 DumpELFSectionHeader_sh_flags(s, sh.sh_flags); in DumpELFSectionHeader()
3360 *s << ((sh_flags & SHF_WRITE) ? "WRITE" : " ") in DumpELFSectionHeader_sh_flags()
3361 << (((sh_flags & SHF_WRITE) && (sh_flags & SHF_ALLOC)) ? '+' : ' ') in DumpELFSectionHeader_sh_flags()
[all …]
H A DELFHeader.h162 elf_xword sh_flags; ///< Section attributes. member
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFObjectFile.h550 return getSection(Sec)->sh_flags; in getSectionFlags()
903 return getSection(Sec)->sh_flags & ELF::SHF_COMPRESSED; in isSectionCompressed()
908 return getSection(Sec)->sh_flags & ELF::SHF_EXECINSTR; in isSectionText()
915 EShdr->sh_flags & ELF::SHF_ALLOC && in isSectionData()
916 !(EShdr->sh_flags & ELF::SHF_EXECINSTR); in isSectionData()
922 return EShdr->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE) && in isSectionBSS()
962 return getSection(Sec)->sh_flags & ELF::SHF_ALLOC && in isBerkeleyText()
963 (getSection(Sec)->sh_flags & ELF::SHF_EXECINSTR || in isBerkeleyText()
964 !(getSection(Sec)->sh_flags & ELF::SHF_WRITE)); in isBerkeleyText()
971 EShdr->sh_flags & ELF::SHF_ALLOC; in isBerkeleyData()
/freebsd-14.2/contrib/file/src/
H A Dreadelf.h209 Elf32_Word sh_flags; member
222 Elf64_Off sh_flags; member
/freebsd-14.2/sys/dev/ksyms/
H A Dksyms.c326 hdr->kh_shdr[SHDR_SYMTAB].sh_flags = 0; in ksyms_snapshot()
338 hdr->kh_shdr[SHDR_STRTAB].sh_flags = 0; in ksyms_snapshot()
352 hdr->kh_shdr[SHDR_SHSTRTAB].sh_flags = 0; in ksyms_snapshot()
/freebsd-14.2/contrib/tcpdump/
H A Dprint-decnet.c71 byte sh_flags; /* route flags */ member
365 byte sh_flags; /* message flags */ member
495 mflags = GET_U_1(rhp->rh_short.sh_flags); in decnet_print()
511 mflags = GET_U_1(rhp->rh_short.sh_flags); in decnet_print()
581 u_int mflags = GET_U_1(rhp->rh_short.sh_flags); in print_decnet_ctlmsg()
/freebsd-14.2/sys/kern/
H A Dlink_elf_obj.c503 ef->progtab[pb].flags = shdr[i].sh_flags; in link_elf_link_preload()
838 if ((shdr[i].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
852 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
857 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
961 if ((shdr[i].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
1040 if ((shdr[i].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
1116 ef->progtab[pb].flags = shdr[i].sh_flags; in link_elf_load_file()
1160 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
1180 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
/freebsd-14.2/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_link.c545 shp->sh_flags = SHF_ALLOC; in dump_elf32()
554 shp->sh_flags = SHF_ALLOC; in dump_elf32()
563 shp->sh_flags = SHF_ALLOC; in dump_elf32()
585 shp->sh_flags = 0; in dump_elf32()
702 shp->sh_flags = SHF_ALLOC; in dump_elf64()
711 shp->sh_flags = SHF_ALLOC; in dump_elf64()
720 shp->sh_flags = SHF_ALLOC; in dump_elf64()
742 shp->sh_flags = 0; in dump_elf64()
/freebsd-14.2/sys/sys/
H A Delf32.h92 Elf32_Word sh_flags; /* Section flags. */ member
H A Delf64.h101 Elf64_Xword sh_flags; /* Section flags. */ member
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELFLinkGraphBuilder.h358 if (Sec.sh_flags & ELF::SHF_EXECINSTR) in graphifySections()
360 if (Sec.sh_flags & ELF::SHF_WRITE) in graphifySections()
368 if (!(Sec.sh_flags & ELF::SHF_ALLOC)) { in graphifySections()
/freebsd-14.2/sys/dev/drm2/
H A Ddrm_irq.c287 unsigned long sh_flags = 0; in drm_irq_install() local
317 sh_flags = INTR_TYPE_TTY | INTR_MPSAFE; in drm_irq_install()
327 sh_flags |= INTR_EXCL; in drm_irq_install()
329 ret = -bus_setup_intr(dev->dev, dev->irqr, sh_flags, NULL, in drm_irq_install()
/freebsd-14.2/contrib/llvm-project/lld/ELF/
H A DDWARF.cpp59 !(objSections[i].sh_flags & ELF::SHF_GROUP)) { in LLDDwarfObj()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp641 To.sh_flags = *From->ShFlags; in overrideFields()
829 SHeader.sh_flags = *Sec->Flags; in initSectionHeaders()
922 !(SHeader.sh_flags & ELF::SHF_ALLOC)) in assignSectionAddress()
1008 SHeader.sh_flags = *YAMLSec->Flags; in initSymtabSectionHeader()
1010 SHeader.sh_flags = ELF::SHF_ALLOC; in initSymtabSectionHeader()
1062 SHeader.sh_flags = *YAMLSec->Flags; in initStrtabSectionHeader()
1064 SHeader.sh_flags = ELF::SHF_ALLOC; in initStrtabSectionHeader()
1128 SHeader.sh_flags = *YAMLSec->Flags; in initDWARFSectionHeader()
1130 SHeader.sh_flags = ELF::SHF_MERGE | ELF::SHF_STRINGS; in initDWARFSectionHeader()
/freebsd-14.2/lib/libc/gen/
H A Dnlist.c283 (sh->sh_flags & SHF_WRITE ? N_DATA : N_TEXT) : in elf_sym_to_nlist()
/freebsd-14.2/contrib/llvm-project/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp291 StrTab.Shdr.sh_flags = ShFlags; in fillStrTabShdr()
304 SymTab.Shdr.sh_flags = SHF_ALLOC; in fillSymTabShdr()
320 DynTab.Shdr.sh_flags = SHF_ALLOC; in fillDynTabShdr()

12