Home
last modified time | relevance | path

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

12

/freebsd/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/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()
479 (ish.sh_flags & SHF_GROUP)) && 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()
[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/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/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/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DObjectFileELF.cpp956 if (header.sh_flags & SHF_ALLOC) in GetBaseAddress()
1712 if (H.sh_flags & SHF_EXECINSTR) in GetSectionType()
1716 if (H.sh_flags & SHF_ALLOC) in GetSectionType()
1746 if (H.sh_flags & SHF_ALLOC) in GetPermissions()
1748 if (H.sh_flags & SHF_WRITE) in GetPermissions()
1750 if (H.sh_flags & SHF_EXECINSTR) in GetPermissions()
1793 addr_t Size = H.sh_flags & SHF_ALLOC ? H.sh_size : 0; in GetVMRange()
1799 Segments.empty() && (H.sh_flags & SHF_ALLOC)) { in GetVMRange()
1835 if ((H.sh_flags & SHF_ALLOC) && It.valid()) { in GetAddressInfo()
1952 header.sh_flags & SHF_TLS ? tls_provider : regular_provider; in CreateSections()
[all …]
H A DELFHeader.h162 elf_xword sh_flags; ///< Section attributes. member
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFObjectFile.h585 return getSection(Sec)->sh_flags; in getSectionFlags()
941 return getSection(Sec)->sh_flags & ELF::SHF_COMPRESSED; in isSectionCompressed()
946 return getSection(Sec)->sh_flags & ELF::SHF_EXECINSTR; in isSectionText()
953 EShdr->sh_flags & ELF::SHF_ALLOC && in isSectionData()
954 !(EShdr->sh_flags & ELF::SHF_EXECINSTR); in isSectionData()
960 return EShdr->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE) && in isSectionBSS()
1000 return getSection(Sec)->sh_flags & ELF::SHF_ALLOC && in isBerkeleyText()
1001 (getSection(Sec)->sh_flags & ELF::SHF_EXECINSTR || in isBerkeleyText()
1002 !(getSection(Sec)->sh_flags & ELF::SHF_WRITE)); in isBerkeleyText()
1009 EShdr->sh_flags & ELF::SHF_ALLOC; in isBerkeleyData()
/freebsd/contrib/file/src/
H A Dreadelf.h209 Elf32_Word sh_flags; member
222 Elf64_Off sh_flags; member
/freebsd/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/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/sys/kern/
H A Dlink_elf_obj.c512 ef->progtab[pb].flags = shdr[i].sh_flags; in link_elf_link_preload()
848 if ((shdr[i].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
862 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
867 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
971 if ((shdr[i].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
1050 if ((shdr[i].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
1126 ef->progtab[pb].flags = shdr[i].sh_flags; in link_elf_load_file()
1169 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
1189 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
/freebsd/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/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/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/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/contrib/llvm-project/lld/ELF/
H A DDWARF.cpp60 !(objSections[i].sh_flags & ELF::SHF_GROUP)) { in LLDDwarfObj()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp647 To.sh_flags = *From->ShFlags; in overrideFields()
835 SHeader.sh_flags = *Sec->Flags; in initSectionHeaders()
928 !(SHeader.sh_flags & ELF::SHF_ALLOC)) in assignSectionAddress()
1014 SHeader.sh_flags = *YAMLSec->Flags; in initSymtabSectionHeader()
1016 SHeader.sh_flags = ELF::SHF_ALLOC; in initSymtabSectionHeader()
1068 SHeader.sh_flags = *YAMLSec->Flags; in initStrtabSectionHeader()
1070 SHeader.sh_flags = ELF::SHF_ALLOC; in initStrtabSectionHeader()
1134 SHeader.sh_flags = *YAMLSec->Flags; in initDWARFSectionHeader()
1136 SHeader.sh_flags = ELF::SHF_MERGE | ELF::SHF_STRINGS; in initDWARFSectionHeader()
/freebsd/lib/libc/gen/
H A Dnlist.c281 (sh->sh_flags & SHF_WRITE ? N_DATA : N_TEXT) : in elf_sym_to_nlist()
/freebsd/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