Home
last modified time | relevance | path

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

123

/src/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCSectionCOFF.h33 mutable unsigned Characteristics; variable
53 MCSectionCOFF(StringRef Name, unsigned Characteristics, in MCSectionCOFF() argument
55 : MCSection(SV_COFF, Name, Characteristics & COFF::IMAGE_SCN_CNT_CODE, in MCSectionCOFF()
56 Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA, in MCSectionCOFF()
58 Characteristics(Characteristics), COMDATSymbol(COMDATSymbol), in MCSectionCOFF()
60 assert((Characteristics & 0x00F00000) == 0 && in MCSectionCOFF()
69 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()
/src/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCOFFYAML.cpp249 void ScalarBitSetTraits<COFF::Characteristics>::bitset( in bitset()
250 IO &IO, COFF::Characteristics &Value) { in bitset()
325 : Characteristics(COFFYAML::WeakExternalCharacteristics(0)) {} in NWeakExternalCharacteristics()
327 : Characteristics(COFFYAML::WeakExternalCharacteristics(C)) {} in NWeakExternalCharacteristics()
329 uint32_t denormalize(IO &) { return Characteristics; } in denormalize()
331 COFFYAML::WeakExternalCharacteristics Characteristics; member
336 : Characteristics(COFF::SectionCharacteristics(0)) {} in NSectionCharacteristics()
338 : Characteristics(COFF::SectionCharacteristics(C)) {} in NSectionCharacteristics()
340 uint32_t denormalize(IO &) { return Characteristics; } in denormalize()
342 COFF::SectionCharacteristics Characteristics; member
[all …]
H A DCOFFEmitter.cpp93 Sec.Header.Characteristics |= (Log2_32(Sec.Alignment) + 1) << 20; in parseSections()
255 if (S.Header.Characteristics & COFF::IMAGE_SCN_LNK_NRELOC_OVFL) { in layoutCOFF()
356 if (S.Header.Characteristics & COFF::IMAGE_SCN_CNT_CODE) in initializeOptionalHeader()
358 if (S.Header.Characteristics & COFF::IMAGE_SCN_CNT_INITIALIZED_DATA) in initializeOptionalHeader()
360 if (S.Header.Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) in initializeOptionalHeader()
440 << binary_le(CP.Obj.Header.Characteristics); in writeCOFF()
481 << binary_le(S.Header.Characteristics); in writeCOFF()
504 if (S.Header.Characteristics & COFF::IMAGE_SCN_LNK_NRELOC_OVFL) in writeCOFF()
555 << binary_le(i->WeakExternal->Characteristics) in writeCOFF()
/src/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()
190 ((Sec.Header.Characteristics & in handleArgs()
259 Sec.Header.Characteristics = flagsToCharacteristics( in handleArgs()
260 It->second.NewFlags, Sec.Header.Characteristics); in handleArgs()
264 uint32_t Characteristics; in handleArgs() local
267 Characteristics = flagsToCharacteristics(It->second.NewFlags, 0); in handleArgs()
269 Characteristics = IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_ALIGN_1BYTES; in handleArgs()
[all …]
H A DCOFFWriter.cpp104 S.Header.Characteristics |= COFF::IMAGE_SCN_LNK_NRELOC_OVFL; in layoutSections()
116 if (S.Header.Characteristics & IMAGE_SCN_CNT_INITIALIZED_DATA) in layoutSections()
324 if ((S.Header.Characteristics & IMAGE_SCN_CNT_CODE) && in writeSections()
/src/contrib/llvm-project/lld/COFF/
H A DWriter.h42 header.Characteristics = chars; in OutputSection()
68 return (header.Characteristics & llvm::COFF::IMAGE_SCN_CNT_CODE) && in isCodeSection()
69 (header.Characteristics & llvm::COFF::IMAGE_SCN_MEM_READ) && in isCodeSection()
70 (header.Characteristics & llvm::COFF::IMAGE_SCN_MEM_EXECUTE); in isCodeSection()
H A DWriter.cpp127 d->Characteristics = 0; in fillEntry()
353 header.Characteristics &= ~permMask; in setPermissions()
354 header.Characteristics |= c; in setPermissions()
366 if (other->header.Characteristics & IMAGE_SCN_CNT_CODE) { in merge()
367 header.Characteristics |= IMAGE_SCN_CNT_CODE; in merge()
368 header.Characteristics &= in merge()
382 (hdr->Characteristics & IMAGE_SCN_MEM_DISCARDABLE) == 0); in writeHeaderTo()
1069 if (s->header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) { in createSections()
1372 if ((sec->header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) == 0) in createSymbolAndStringTable()
1603 coff->Characteristics = IMAGE_FILE_EXECUTABLE_IMAGE; in writeHeader()
[all …]
H A DMapFile.cpp270 (sec->header.Characteristics & COFF::IMAGE_SCN_CNT_CODE) && in writeMapFile()
271 (sec->header.Characteristics & COFF::IMAGE_SCN_MEM_READ) && in writeMapFile()
272 (sec->header.Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE); in writeMapFile()
/src/contrib/llvm-project/llvm/include/llvm/Object/
H A DWindowsResource.h89 support::ulittle32_t Characteristics; member
112 uint32_t getCharacteristics() const { return Suffix->Characteristics; } in getCharacteristics()
177 uint32_t getCharacteristics() const { return Characteristics; } in getCharacteristics()
193 uint32_t Characteristics,
199 uint32_t Characteristics, uint32_t Origin, uint32_t DataIndex);
213 uint32_t Characteristics, uint32_t Origin,
227 uint32_t Characteristics = 0; variable
H A DCOFF.h82 support::ulittle16_t Characteristics; member
178 support::ulittle32_t Characteristics; member
450 support::ulittle32_t Characteristics; member
455 return (Characteristics & COFF::IMAGE_SCN_LNK_NRELOC_OVFL) && in hasExtendedRelocations()
462 if (Characteristics & COFF::IMAGE_SCN_TYPE_NO_PAD) in getAlignment()
467 uint32_t Shift = (Characteristics >> 20) & 0xF; in getAlignment()
504 support::ulittle32_t Characteristics; member
575 support::ulittle32_t Characteristics; member
579 uint32_t Shift = (Characteristics & COFF::IMAGE_SCN_ALIGN_MASK) >> 20; in getAlignment()
592 Characteristics = in setAlignment()
[all …]
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DCOFFLinkGraphBuilder.cpp69 return Section->Characteristics & COFF::IMAGE_SCN_LNK_COMDAT; in isComdatSection()
153 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE) in graphifySections()
155 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_MEM_READ) in graphifySections()
157 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_MEM_WRITE) in graphifySections()
164 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_LNK_REMOVE) in graphifySections()
171 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) in graphifySections()
244 uint32_t Characteristics = WeakExternal->Characteristics; in graphifySymbols() local
246 {SymIndex, TagIndex, Characteristics, SymbolName}); in graphifySymbols()
331 WeakExternal.Characteristics == COFF::IMAGE_WEAK_EXTERN_SEARCH_ALIAS in flushWeakAliasRequests()
/src/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DCOFFYAML.h31 inline Characteristics operator|(Characteristics a, Characteristics b) {
33 return static_cast<Characteristics>(Ret);
198 struct ScalarBitSetTraits<COFF::Characteristics> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
199 static void bitset(IO &IO, COFF::Characteristics &Value); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/src/contrib/llvm-project/lldb/source/Plugins/ObjectFile/COFF/
H A DObjectFileCOFF.cpp210 if (Section->Characteristics & COFF::IMAGE_SCN_CNT_CODE) in CreateSections()
212 if (Section->Characteristics & COFF::IMAGE_SCN_CNT_INITIALIZED_DATA) in CreateSections()
214 if (Section->Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) in CreateSections()
220 if (Section->Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE) in CreateSections()
222 if (Section->Characteristics & COFF::IMAGE_SCN_MEM_READ) in CreateSections()
224 if (Section->Characteristics & COFF::IMAGE_SCN_MEM_WRITE) in CreateSections()
/src/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
/src/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 …]
/src/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
/src/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.cpp39 bool ParseSectionSwitch(StringRef Section, unsigned Characteristics);
41 bool ParseSectionSwitch(StringRef Section, unsigned Characteristics,
307 unsigned Characteristics) { in ParseSectionSwitch() argument
308 return ParseSectionSwitch(Section, Characteristics, "", (COFF::COMDATType)0); in ParseSectionSwitch()
312 unsigned Characteristics, in ParseSectionSwitch() argument
320 Section, Characteristics, COMDATSymName, Type)); in ParseSectionSwitch()
/src/stand/efi/include/amd64/
H A Dpe.h80 UINT16 Characteristics; member
245 UINT32 Characteristics; member
548 UINT32 Characteristics; member
583 UINT32 Characteristics; member
/src/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DCOFF.h71 uint16_t Characteristics; member
137 enum Characteristics : unsigned { enum
294 uint32_t Characteristics; member
449 uint32_t Characteristics; member
/src/contrib/llvm-project/llvm/lib/MC/
H A DMCContext.cpp694 unsigned Characteristics, in getCOFFSection() argument
721 CachedName, Characteristics, COMDATSymbol, Selection, Begin); in getCOFFSection()
729 unsigned Characteristics) { in getCOFFSection() argument
730 return getCOFFSection(Section, Characteristics, "", 0, GenericSectionID); in getCOFFSection()
742 unsigned Characteristics = Sec->getCharacteristics(); in getAssociativeCOFFSection() local
744 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in getAssociativeCOFFSection()
745 return getCOFFSection(Sec->getName(), Characteristics, KeySym->getName(), in getAssociativeCOFFSection()
749 return getCOFFSection(Sec->getName(), Characteristics, "", 0, UniqueID); in getAssociativeCOFFSection()
H A DWinCOFFObjectWriter.cpp320 Section->Header.Characteristics = MCSec.getCharacteristics(); in defineSection()
321 Section->Header.Characteristics |= getAlignment(MCSec); in defineSection()
409 Sym->Aux[0].Aux.WeakExternal.Characteristics = in defineSymbol()
458 return (S->Header.Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) == in IsPhysicalSection()
487 W.write<uint16_t>(Header.Characteristics); in WriteFileHeader()
510 W.write<uint32_t>(i.Aux.WeakExternal.Characteristics); in WriteAuxiliarySymbols()
554 S.Characteristics |= COFF::IMAGE_SCN_LNK_NRELOC_OVFL; in writeSectionHeaders()
564 W.write<uint32_t>(S.Characteristics); in writeSectionHeaders()
693 Sym->Section->Header.Characteristics & COFF::IMAGE_SCN_LNK_COMDAT) in setWeakDefaultNames()
H A DMCSectionCOFF.cpp34 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in setSelection()
/src/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp1681 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getExplicitSectionGlobal() local
1694 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in getExplicitSectionGlobal()
1700 return getContext().getCOFFSection(Name, Characteristics, COMDATSymName, in getExplicitSectionGlobal()
1729 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in SelectSectionForGlobal() local
1731 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in SelectSectionForGlobal()
1759 return getContext().getCOFFSection(Name, Characteristics, COMDATSymName, in SelectSectionForGlobal()
1764 return getContext().getCOFFSection(Name, Characteristics, TmpData, in SelectSectionForGlobal()
1817 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getSectionForJumpTable() local
1818 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in getSectionForJumpTable()
1821 return getContext().getCOFFSection(SecName, Characteristics, COMDATSymName, in getSectionForJumpTable()
[all …]

123