Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/binutils/include/elf/
H A Dinternal.h81 bfd_vma sh_flags; /* Miscellaneous section attributes */ member
264 (((sec_hdr->sh_flags & SHF_TLS) == 0 \
272 (((((sec_hdr->sh_flags & SHF_TLS) != 0) \
275 || ((sec_hdr->sh_flags & SHF_TLS) == 0 \
284 && ((sec_hdr->sh_flags & SHF_ALLOC) == 0 \
H A Dexternal.h103 unsigned char sh_flags[4]; /* Miscellaneous section attributes */ member
116 unsigned char sh_flags[8]; /* Miscellaneous section attributes */ member
/freebsd-12.1/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.c411 s->flags = ish.sh_flags; in create_scn()
429 (ish.sh_flags & SHF_ALLOC)) in create_scn()
473 if (((ish.sh_flags & SHF_ALLOC) || in create_scn()
1138 osh.sh_flags = 0; in copy_shdr()
1140 osh.sh_flags |= SHF_ALLOC; in copy_shdr()
1142 osh.sh_flags |= SHF_WRITE; in copy_shdr()
1144 osh.sh_flags |= SHF_EXECINSTR; in copy_shdr()
1157 osh.sh_flags = ish.sh_flags; in copy_shdr()
1166 osh.sh_flags |= SHF_INFO_LINK; in copy_shdr()
1264 osh.sh_flags = flags; in create_external_section()
[all …]
H A Dbinary.c75 if ((sh.sh_flags & SHF_ALLOC) == 0 || in create_binary()
99 if ((sh.sh_flags & SHF_ALLOC) == 0 || in create_binary()
/freebsd-12.1/contrib/elftoolchain/libelf/
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-12.1/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c167 dst->sh_flags = src->sh_flags; in shdr_to_gelf()
400 ctfsect.cts_flags = shp->sh_flags; in ctf_fdopen()
408 symsect.cts_flags = shp->sh_flags; in ctf_fdopen()
415 strsect.cts_flags = lhp->sh_flags; in ctf_fdopen()
/freebsd-12.1/contrib/elftoolchain/size/
H A Dsize.c737 if (!(shdr->sh_flags & SHF_ALLOC)) in berkeley_calc()
739 if ((shdr->sh_flags & SHF_ALLOC) && in berkeley_calc()
740 ((shdr->sh_flags & SHF_EXECINSTR) || in berkeley_calc()
741 !(shdr->sh_flags & SHF_WRITE))) in berkeley_calc()
743 else if ((shdr->sh_flags & SHF_ALLOC) && in berkeley_calc()
744 (shdr->sh_flags & SHF_WRITE) && in berkeley_calc()
/freebsd-12.1/contrib/llvm/include/llvm/Object/
H A DELFObjectFile.h449 return getSection(Sec)->sh_flags; in getSectionFlags()
707 return getSection(Sec)->sh_flags & ELF::SHF_COMPRESSED; in isSectionCompressed()
712 return getSection(Sec)->sh_flags & ELF::SHF_EXECINSTR; in isSectionText()
719 EShdr->sh_flags & ELF::SHF_ALLOC && in isSectionData()
720 !(EShdr->sh_flags & ELF::SHF_EXECINSTR); in isSectionData()
726 return EShdr->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE) && in isSectionBSS()
766 return getSection(Sec)->sh_flags & ELF::SHF_ALLOC && in isBerkeleyText()
767 (getSection(Sec)->sh_flags & ELF::SHF_EXECINSTR || in isBerkeleyText()
768 !(getSection(Sec)->sh_flags & ELF::SHF_WRITE)); in isBerkeleyText()
775 EShdr->sh_flags & ELF::SHF_ALLOC; in isBerkeleyData()
/freebsd-12.1/contrib/tcpdump/
H A Dprint-decnet.c89 byte sh_flags; /* route flags */ member
395 byte sh_flags; /* message flags */ member
528 ND_TCHECK(rhp->rh_short.sh_flags); in decnet_print()
529 mflags = EXTRACT_LE_8BITS(rhp->rh_short.sh_flags); in decnet_print()
545 ND_TCHECK(rhp->rh_short.sh_flags); in decnet_print()
546 mflags = EXTRACT_LE_8BITS(rhp->rh_short.sh_flags); in decnet_print()
618 int mflags = EXTRACT_LE_8BITS(rhp->rh_short.sh_flags); in print_decnet_ctlmsg()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/
H A DObjectFileELF.cpp1788 if (H.sh_flags & SHF_EXECINSTR) in GetSectionType()
1825 if (H.sh_flags & SHF_ALLOC) in GetPermissions()
1827 if (H.sh_flags & SHF_WRITE) in GetPermissions()
1829 if (H.sh_flags & SHF_EXECINSTR) in GetPermissions()
1902 if ((H.sh_flags & SHF_ALLOC) && It.valid()) { in GetAddressInfo()
3199 s->Printf(" %8.8" PRIx64 " (", sh.sh_flags); in DumpELFSectionHeader()
3200 DumpELFSectionHeader_sh_flags(s, sh.sh_flags); in DumpELFSectionHeader()
3245 *s << ((sh_flags & SHF_WRITE) ? "WRITE" : " ") in DumpELFSectionHeader_sh_flags()
3246 << (((sh_flags & SHF_WRITE) && (sh_flags & SHF_ALLOC)) ? '+' : ' ') in DumpELFSectionHeader_sh_flags()
3247 << ((sh_flags & SHF_ALLOC) ? "ALLOC" : " ") in DumpELFSectionHeader_sh_flags()
[all …]
H A DELFHeader.h175 elf_xword sh_flags; ///< Section attributes. member
/freebsd-12.1/contrib/file/src/
H A Dreadelf.h209 Elf32_Word sh_flags; member
222 Elf64_Off sh_flags; member
/freebsd-12.1/sys/dev/ksyms/
H A Dksyms.c318 hdr->kh_shdr[SHDR_SYMTAB].sh_flags = 0; in ksyms_snapshot()
330 hdr->kh_shdr[SHDR_STRTAB].sh_flags = 0; in ksyms_snapshot()
344 hdr->kh_shdr[SHDR_SHSTRTAB].sh_flags = 0; in ksyms_snapshot()
/freebsd-12.1/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_link.c564 shp->sh_flags = SHF_ALLOC; in dump_elf32()
573 shp->sh_flags = SHF_ALLOC; in dump_elf32()
582 shp->sh_flags = SHF_ALLOC; in dump_elf32()
604 shp->sh_flags = SHF_ALLOC; in dump_elf32()
710 shp->sh_flags = SHF_ALLOC; in dump_elf64()
719 shp->sh_flags = SHF_ALLOC; in dump_elf64()
728 shp->sh_flags = SHF_ALLOC; in dump_elf64()
750 shp->sh_flags = SHF_ALLOC; in dump_elf64()
/freebsd-12.1/contrib/binutils/bfd/
H A Delf.c820 if ((hdr->sh_flags & SHF_ALLOC) != 0) in _bfd_elf_make_section_from_shdr()
839 if (hdr->sh_flags & SHF_GROUP) in _bfd_elf_make_section_from_shdr()
842 if ((hdr->sh_flags & SHF_TLS) != 0) in _bfd_elf_make_section_from_shdr()
2749 rel_hdr->sh_flags = 0; in _bfd_elf_init_reloc_shdr()
2890 this_hdr->sh_flags |= SHF_ALLOC; in elf_fake_sections()
2892 this_hdr->sh_flags |= SHF_WRITE; in elf_fake_sections()
2900 this_hdr->sh_flags |= SHF_STRINGS; in elf_fake_sections()
2903 this_hdr->sh_flags |= SHF_GROUP; in elf_fake_sections()
2906 this_hdr->sh_flags |= SHF_TLS; in elf_fake_sections()
3601 shstrtab_hdr->sh_flags = 0; in _bfd_elf_compute_section_file_positions()
[all …]
H A Delfcode.h301 dst->sh_flags = H_GET_WORD (abfd, src->sh_flags); in elf_swap_shdr_in()
327 H_PUT_WORD (abfd, src->sh_flags, dst->sh_flags); in elf_swap_shdr_out()
780 if (((i_shdrp[shindex].sh_flags & SHF_INFO_LINK) in elf_object_p()
789 && (i_shdrp[shindex].sh_flags & SHF_ALLOC) != 0 in elf_object_p()
1526 (long) hdr->sh_flags); in elf_debug_section()
/freebsd-12.1/sys/kern/
H A Dlink_elf_obj.c641 if ((shdr[i].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
655 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
660 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
762 if ((shdr[i].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
834 if ((shdr[i].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
931 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
951 if ((shdr[shdr[i].sh_info].sh_flags & SHF_ALLOC) == 0) in link_elf_load_file()
/freebsd-12.1/sys/dev/drm2/
H A Ddrm_irq.c289 unsigned long sh_flags = 0; in drm_irq_install() local
319 sh_flags = INTR_TYPE_TTY | INTR_MPSAFE; in drm_irq_install()
329 sh_flags |= INTR_EXCL; in drm_irq_install()
331 ret = -bus_setup_intr(dev->dev, dev->irqr, sh_flags, NULL, in drm_irq_install()
/freebsd-12.1/sys/sys/
H A Delf32.h94 Elf32_Word sh_flags; /* Section flags. */ member
H A Delf64.h103 Elf64_Xword sh_flags; /* Section flags. */ member
/freebsd-12.1/usr.bin/elfdump/
H A Delfdump.c118 offsetof(Elf32_Shdr, sh_flags), offsetof(Elf32_Shdr, sh_addr),
159 offsetof(Elf64_Shdr, sh_flags), offsetof(Elf64_Shdr, sh_addr),
408 static const char *sh_flags[] = { variable
833 fprintf(out, "\tsh_flags: %s\n", sh_flags[flags & 0x7]); in elf_print_shdr()
/freebsd-12.1/contrib/llvm/tools/llvm-objcopy/ELF/
H A DObject.cpp64 Shdr.sh_flags = Sec.Flags; in writeShdr()
1045 if (Shdr.sh_flags & SHF_ALLOC) { in makeSection()
1054 if (Shdr.sh_flags & SHF_ALLOC) { in makeSection()
1089 if (isDataGnuCompressed(Data) || (Shdr.sh_flags & ELF::SHF_COMPRESSED)) { in makeSection()
1112 Sec.Flags = Shdr.sh_flags; in readSectionHeaders()
1294 Shdr.sh_flags = 0; in writeShdrs()

123