Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCSectionCOFF.h33 mutable unsigned Characteristics; variable
55 MCSectionCOFF(StringRef Name, unsigned Characteristics, in MCSectionCOFF() argument
58 : MCSection(SV_COFF, Name, Characteristics & COFF::IMAGE_SCN_CNT_CODE, in MCSectionCOFF()
59 Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA, in MCSectionCOFF()
61 Characteristics(Characteristics), COMDATSymbol(COMDATSymbol), in MCSectionCOFF()
63 assert((Characteristics & 0x00F00000) == 0 && in MCSectionCOFF()
72 unsigned getCharacteristics() const { return Characteristics; } in getCharacteristics()
H A DMCSymbolCOFF.h54 void setWeakExternalCharacteristics(COFF::WeakExternalCharacteristics Characteristics) const { in setWeakExternalCharacteristics() argument
55 modifyFlags(Characteristics << SF_WeakExternalCharacteristicsShift, in setWeakExternalCharacteristics()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCOFFYAML.cpp268 void ScalarBitSetTraits<COFF::Characteristics>::bitset( in bitset()
269 IO &IO, COFF::Characteristics &Value) { in bitset()
344 : Characteristics(COFFYAML::WeakExternalCharacteristics(0)) {} in NWeakExternalCharacteristics()
346 : Characteristics(COFFYAML::WeakExternalCharacteristics(C)) {} in NWeakExternalCharacteristics()
348 uint32_t denormalize(IO &) { return Characteristics; } in denormalize()
350 COFFYAML::WeakExternalCharacteristics Characteristics; member
355 : Characteristics(COFF::SectionCharacteristics(0)) {} in NSectionCharacteristics()
357 : Characteristics(COFF::SectionCharacteristics(C)) {} in NSectionCharacteristics()
359 uint32_t denormalize(IO &) { return Characteristics; } in denormalize()
361 COFF::SectionCharacteristics Characteristics; member
[all …]
H A DCOFFEmitter.cpp90 Sec.Header.Characteristics |= (Log2_32(Sec.Alignment) + 1) << 20; in parseSections()
249 if (S.Header.Characteristics & COFF::IMAGE_SCN_LNK_NRELOC_OVFL) { in layoutCOFF()
350 if (S.Header.Characteristics & COFF::IMAGE_SCN_CNT_CODE) in initializeOptionalHeader()
352 if (S.Header.Characteristics & COFF::IMAGE_SCN_CNT_INITIALIZED_DATA) in initializeOptionalHeader()
354 if (S.Header.Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) in initializeOptionalHeader()
434 << binary_le(CP.Obj.Header.Characteristics); in writeCOFF()
475 << binary_le(S.Header.Characteristics); in writeCOFF()
498 if (S.Header.Characteristics & COFF::IMAGE_SCN_LNK_NRELOC_OVFL) in writeCOFF()
549 << binary_le(i->WeakExternal->Characteristics) in writeCOFF()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp62 uint32_t Characteristics) { in addSection() argument
63 bool NeedVA = Characteristics & (IMAGE_SCN_MEM_EXECUTE | IMAGE_SCN_MEM_READ | in addSection()
80 Sec.Header.Characteristics = Characteristics; in addSection()
175 (Sec.Header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) != 0) in handleArgs()
198 ((Sec.Header.Characteristics & in handleArgs()
267 Sec.Header.Characteristics = flagsToCharacteristics( in handleArgs()
268 It->second.NewFlags, Sec.Header.Characteristics); in handleArgs()
272 uint32_t Characteristics; in handleArgs() local
275 Characteristics = flagsToCharacteristics(It->second.NewFlags, 0); in handleArgs()
277 Characteristics = IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_ALIGN_1BYTES; in handleArgs()
[all …]
/freebsd/contrib/llvm-project/lld/COFF/
H A DWriter.h42 header.Characteristics = chars; in OutputSection()
71 return (header.Characteristics & llvm::COFF::IMAGE_SCN_CNT_CODE) && in isCodeSection()
72 (header.Characteristics & llvm::COFF::IMAGE_SCN_MEM_READ) && in isCodeSection()
73 (header.Characteristics & llvm::COFF::IMAGE_SCN_MEM_EXECUTE); in isCodeSection()
H A DWriter.cpp124 d->Characteristics = 0; in fillEntry()
369 header.Characteristics &= ~permMask; in setPermissions()
370 header.Characteristics |= c; in setPermissions()
382 if (other->header.Characteristics & IMAGE_SCN_CNT_CODE) { in merge()
383 header.Characteristics |= IMAGE_SCN_CNT_CODE; in merge()
384 header.Characteristics &= in merge()
398 (hdr->Characteristics & IMAGE_SCN_MEM_DISCARDABLE) == 0); in writeHeaderTo()
1176 if (s->header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) { in createSections()
1516 if ((sec->header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) == 0) in createSymbolAndStringTable()
1795 coff->Characteristics = IMAGE_FILE_EXECUTABLE_IMAGE; in writeHeader()
[all …]
H A DMapFile.cpp269 (sec->header.Characteristics & COFF::IMAGE_SCN_CNT_CODE) && in writeMapFile()
270 (sec->header.Characteristics & COFF::IMAGE_SCN_MEM_READ) && in writeMapFile()
271 (sec->header.Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE); in writeMapFile()
H A DInputFiles.cpp370 if (sec->Characteristics & IMAGE_SCN_LNK_COMDAT) in initializeChunks()
420 if (sec->Characteristics & llvm::COFF::IMAGE_SCN_LNK_REMOVE) in readSection()
454 else if (!(sec->Characteristics & llvm::COFF::IMAGE_SCN_LNK_INFO)) in readSection()
599 aux->Characteristics == IMAGE_WEAK_EXTERN_ANTI_DEPENDENCY) { in initializeSymbols()
657 aux->Characteristics == in initializeSymbols()
865 hdr->Characteristics = sym.getValue() | IMAGE_SCN_ALIGN_4BYTES; in createDefined()
867 hdr->Characteristics = IMAGE_SCN_CNT_INITIALIZED_DATA | in createDefined()
1485 return (sec->Characteristics & COFF::IMAGE_SCN_CNT_CODE) != 0; in isRVACode()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DWindowsResource.h90 support::ulittle32_t Characteristics; member
113 uint32_t getCharacteristics() const { return Suffix->Characteristics; } in getCharacteristics()
179 uint32_t getCharacteristics() const { return Characteristics; } in getCharacteristics()
195 uint32_t Characteristics,
201 uint32_t Characteristics, uint32_t Origin, uint32_t DataIndex);
215 uint32_t Characteristics, uint32_t Origin,
229 uint32_t Characteristics = 0; variable
H A DCOFF.h87 support::ulittle16_t Characteristics; member
183 support::ulittle32_t Characteristics; member
459 support::ulittle32_t Characteristics; member
464 return (Characteristics & COFF::IMAGE_SCN_LNK_NRELOC_OVFL) && in hasExtendedRelocations()
471 if (Characteristics & COFF::IMAGE_SCN_TYPE_NO_PAD) in getAlignment()
476 uint32_t Shift = (Characteristics >> 20) & 0xF; in getAlignment()
513 support::ulittle32_t Characteristics; member
584 support::ulittle32_t Characteristics; member
588 uint32_t Shift = (Characteristics & COFF::IMAGE_SCN_ALIGN_MASK) >> 20; in getAlignment()
601 Characteristics = in setAlignment()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DCOFFLinkGraphBuilder.cpp63 return Section->Characteristics & COFF::IMAGE_SCN_LNK_COMDAT; in isComdatSection()
147 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE) in graphifySections()
149 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_MEM_READ) in graphifySections()
151 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_MEM_WRITE) in graphifySections()
158 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_LNK_REMOVE) in graphifySections()
165 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) in graphifySections()
239 uint32_t Characteristics = WeakExternal->Characteristics; in graphifySymbols() local
241 {SymIndex, TagIndex, Characteristics, SymbolName}); in graphifySymbols()
325 WeakExternal.Characteristics == COFF::IMAGE_WEAK_EXTERN_SEARCH_ALIAS in flushWeakAliasRequests()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/COFF/
H A DObjectFileCOFF.cpp206 if (Section->Characteristics & COFF::IMAGE_SCN_CNT_CODE) in CreateSections()
208 if (Section->Characteristics & COFF::IMAGE_SCN_CNT_INITIALIZED_DATA) in CreateSections()
210 if (Section->Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) in CreateSections()
216 if (Section->Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE) in CreateSections()
218 if (Section->Characteristics & COFF::IMAGE_SCN_MEM_READ) in CreateSections()
220 if (Section->Characteristics & COFF::IMAGE_SCN_MEM_WRITE) in CreateSections()
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DCOFFYAML.h31 inline Characteristics operator|(Characteristics a, Characteristics b) {
33 return static_cast<Characteristics>(Ret);
202 struct ScalarBitSetTraits<COFF::Characteristics> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
203 static void bitset(IO &IO, COFF::Characteristics &Value); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/freebsd/sys/contrib/edk2/Include/IndustryStandard/
H A DPeImage.h89 UINT16 Characteristics; member
308 UINT32 Characteristics; member
583 UINT32 Characteristics; member
630 UINT32 Characteristics; member
641 UINT32 Characteristics; member
728 UINT32 Characteristics; member
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DWindowsResource.cpp432 Table.MinorVersion, Table.Characteristics, in addChildren()
456 uint32_t Characteristics, in TreeNode() argument
459 MinorVersion(MinorVersion), Characteristics(Characteristics), in TreeNode()
475 uint32_t Characteristics, in createDataNode() argument
479 MajorVersion, MinorVersion, Characteristics, Origin, DataIndex)); in createDataNode()
513 uint32_t Characteristics, uint32_t Origin, uint32_t DataIndex, in addDataChild() argument
515 auto NewChild = createDataNode(MajorVersion, MinorVersion, Characteristics, in addDataChild()
740 Header->Characteristics = COFF::IMAGE_FILE_32BIT_MACHINE; in writeCOFFHeader()
757 SectionOneHeader->Characteristics += COFF::IMAGE_SCN_CNT_INITIALIZED_DATA; in writeFirstSectionHeader()
758 SectionOneHeader->Characteristics += COFF::IMAGE_SCN_MEM_READ; in writeFirstSectionHeader()
[all …]
/freebsd/stand/efi/include/i386/
H A Dpe.h80 UINT16 Characteristics; member
245 UINT32 Characteristics; member
548 UINT32 Characteristics; member
583 UINT32 Characteristics; member
593 UINT32 Characteristics; member
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DCOFFMasmParser.cpp38 bool parseSectionSwitch(StringRef SectionName, unsigned Characteristics);
40 bool parseSectionSwitch(StringRef SectionName, unsigned Characteristics,
214 unsigned Characteristics) { in parseSectionSwitch() argument
215 return parseSectionSwitch(SectionName, Characteristics, "", in parseSectionSwitch()
220 unsigned Characteristics, in parseSectionSwitch() argument
228 MCSection *Section = getContext().getCOFFSection(SectionName, Characteristics, in parseSectionSwitch()
H A DCOFFAsmParser.cpp38 bool parseSectionSwitch(StringRef Section, unsigned Characteristics);
40 bool parseSectionSwitch(StringRef Section, unsigned Characteristics,
321 unsigned Characteristics) { in parseSectionSwitch() argument
322 return parseSectionSwitch(Section, Characteristics, "", (COFF::COMDATType)0, in parseSectionSwitch()
327 unsigned Characteristics, in parseSectionSwitch() argument
336 Section, Characteristics, COMDATSymName, Type, UniqueID)); in parseSectionSwitch()
/freebsd/stand/efi/include/amd64/
H A Dpe.h80 UINT16 Characteristics; member
245 UINT32 Characteristics; member
548 UINT32 Characteristics; member
583 UINT32 Characteristics; member
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DCOFF.h72 uint16_t Characteristics; member
138 enum Characteristics : unsigned { enum
295 uint32_t Characteristics; member
483 uint32_t Characteristics; member
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DWinCOFFObjectWriter.cpp320 Section->Header.Characteristics = MCSec.getCharacteristics(); in defineSection()
321 Section->Header.Characteristics |= getAlignment(MCSec); in defineSection()
408 Sym->Aux[0].Aux.WeakExternal.Characteristics = in defineSymbol()
457 return (S->Header.Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) == in IsPhysicalSection()
486 W.write<uint16_t>(Header.Characteristics); in WriteFileHeader()
509 W.write<uint32_t>(i.Aux.WeakExternal.Characteristics); in WriteAuxiliarySymbols()
553 S.Characteristics |= COFF::IMAGE_SCN_LNK_NRELOC_OVFL; in writeSectionHeaders()
563 W.write<uint32_t>(S.Characteristics); in writeSectionHeaders()
691 Sym->Section->Header.Characteristics & COFF::IMAGE_SCN_LNK_COMDAT) in setWeakDefaultNames()
H A DMCContext.cpp780 unsigned Characteristics, in getCOFFSection() argument
807 CachedName, Characteristics, COMDATSymbol, Selection, UniqueID, Begin); in getCOFFSection()
815 unsigned Characteristics) { in getCOFFSection() argument
816 return getCOFFSection(Section, Characteristics, "", 0, in getCOFFSection()
829 unsigned Characteristics = Sec->getCharacteristics(); in getAssociativeCOFFSection() local
831 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in getAssociativeCOFFSection()
832 return getCOFFSection(Sec->getName(), Characteristics, KeySym->getName(), in getAssociativeCOFFSection()
836 return getCOFFSection(Sec->getName(), Characteristics, "", 0, UniqueID); in getAssociativeCOFFSection()
H A DMCSectionCOFF.cpp34 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in setSelection()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldCOFFThumb.h43 ->Characteristics & in isThumbFunc()
72 bool isThumb = CoffSec->Characteristics & COFF::IMAGE_SCN_MEM_16BIT; in getJITSymbolFlags()

123