| /openbsd-src/gnu/llvm/llvm/include/llvm/MC/ |
| H A D | MCSectionCOFF.h | 32 mutable unsigned Characteristics; variable 52 MCSectionCOFF(StringRef Name, unsigned Characteristics, in MCSectionCOFF() argument 55 : MCSection(SV_COFF, Name, K, Begin), Characteristics(Characteristics), in MCSectionCOFF() 57 assert((Characteristics & 0x00F00000) == 0 && in MCSectionCOFF() 66 unsigned getCharacteristics() const { return Characteristics; } in getCharacteristics()
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/ |
| H A D | COFFYAML.cpp | 248 void ScalarBitSetTraits<COFF::Characteristics>::bitset( in bitset() 249 IO &IO, COFF::Characteristics &Value) { in bitset() 324 : Characteristics(COFFYAML::WeakExternalCharacteristics(0)) {} in NWeakExternalCharacteristics() 326 : Characteristics(COFFYAML::WeakExternalCharacteristics(C)) {} in NWeakExternalCharacteristics() 328 uint32_t denormalize(IO &) { return Characteristics; } in denormalize() 330 COFFYAML::WeakExternalCharacteristics Characteristics; member 335 : Characteristics(COFF::SectionCharacteristics(0)) {} in NSectionCharacteristics() 337 : Characteristics(COFF::SectionCharacteristics(C)) {} in NSectionCharacteristics() 339 uint32_t denormalize(IO &) { return Characteristics; } in denormalize() 341 COFF::SectionCharacteristics Characteristics; member [all …]
|
| H A D | COFFEmitter.cpp | 98 Sec.Header.Characteristics |= (Log2_32(Sec.Alignment) + 1) << 20; in parseSections() 257 if (S.Header.Characteristics & COFF::IMAGE_SCN_LNK_NRELOC_OVFL) { in layoutCOFF() 358 if (S.Header.Characteristics & COFF::IMAGE_SCN_CNT_CODE) in initializeOptionalHeader() 360 if (S.Header.Characteristics & COFF::IMAGE_SCN_CNT_INITIALIZED_DATA) in initializeOptionalHeader() 362 if (S.Header.Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) in initializeOptionalHeader() 442 << binary_le(CP.Obj.Header.Characteristics); in writeCOFF() 483 << binary_le(S.Header.Characteristics); in writeCOFF() 503 if (S.Header.Characteristics & COFF::IMAGE_SCN_LNK_NRELOC_OVFL) in writeCOFF() 554 << binary_le(i->WeakExternal->Characteristics) in writeCOFF()
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjCopy/COFF/ |
| H A D | COFFObjcopy.cpp | 61 uint32_t Characteristics) { in addSection() argument 62 bool NeedVA = Characteristics & (IMAGE_SCN_MEM_EXECUTE | IMAGE_SCN_MEM_READ | in addSection() 79 Sec.Header.Characteristics = Characteristics; in addSection() 145 (Sec.Header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) != 0) in handleArgs() 160 ((Sec.Header.Characteristics & in handleArgs() 229 Sec.Header.Characteristics = flagsToCharacteristics( in handleArgs() 230 It->second.NewFlags, Sec.Header.Characteristics); in handleArgs() 234 uint32_t Characteristics; in handleArgs() local 237 Characteristics = flagsToCharacteristics(It->second.NewFlags, 0); in handleArgs() 239 Characteristics = IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_ALIGN_1BYTES; in handleArgs() [all …]
|
| H A D | COFFWriter.cpp | 104 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()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Object/ |
| H A D | WindowsResource.h | 89 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 D | COFF.h | 82 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 …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ObjectYAML/ |
| H A D | COFFYAML.h | 30 inline Characteristics operator|(Characteristics a, Characteristics b) { 32 return static_cast<Characteristics>(Ret); 185 struct ScalarBitSetTraits<COFF::Characteristics> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 186 static void bitset(IO &IO, COFF::Characteristics &Value); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | COFFLinkGraphBuilder.cpp | 69 return Section->Characteristics & COFF::IMAGE_SCN_LNK_COMDAT; in isComdatSection() 146 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE) in graphifySections() 148 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_MEM_READ) in graphifySections() 150 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_MEM_WRITE) in graphifySections() 161 if ((*Sec)->Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) in graphifySections() 234 uint32_t Characteristics = WeakExternal->Characteristics; in graphifySymbols() local 236 {SymIndex, TagIndex, Characteristics, SymbolName}); in graphifySymbols() 321 WeakExternal.Characteristics == COFF::IMAGE_WEAK_EXTERN_SEARCH_ALIAS in flushWeakAliasRequests()
|
| /openbsd-src/gnu/llvm/llvm/lib/Object/ |
| H A D | WindowsResource.cpp | 431 Table.MinorVersion, Table.Characteristics, in addChildren() 455 uint32_t Characteristics, in TreeNode() argument 458 MinorVersion(MinorVersion), Characteristics(Characteristics), in TreeNode() 474 uint32_t Characteristics, in createDataNode() argument 478 MajorVersion, MinorVersion, Characteristics, Origin, DataIndex)); in createDataNode() 512 uint32_t Characteristics, uint32_t Origin, uint32_t DataIndex, in addDataChild() argument 514 auto NewChild = createDataNode(MajorVersion, MinorVersion, Characteristics, in addDataChild() 739 Header->Characteristics = COFF::IMAGE_FILE_32BIT_MACHINE; in writeCOFFHeader() 756 SectionOneHeader->Characteristics += COFF::IMAGE_SCN_CNT_INITIALIZED_DATA; in writeFirstSectionHeader() 757 SectionOneHeader->Characteristics += COFF::IMAGE_SCN_MEM_READ; in writeFirstSectionHeader() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/MC/MCParser/ |
| H A D | COFFMasmParser.cpp | 38 bool ParseSectionSwitch(StringRef SectionName, unsigned Characteristics, 41 bool ParseSectionSwitch(StringRef SectionName, unsigned Characteristics, 221 unsigned Characteristics, in ParseSectionSwitch() argument 223 return ParseSectionSwitch(SectionName, Characteristics, Kind, "", in ParseSectionSwitch() 228 StringRef SectionName, unsigned Characteristics, SectionKind Kind, in ParseSectionSwitch() argument 234 MCSection *Section = getContext().getCOFFSection(SectionName, Characteristics, in ParseSectionSwitch()
|
| H A D | COFFAsmParser.cpp | 40 unsigned Characteristics, 43 bool ParseSectionSwitch(StringRef Section, unsigned Characteristics, 315 unsigned Characteristics, in ParseSectionSwitch() argument 317 return ParseSectionSwitch(Section, Characteristics, Kind, "", (COFF::COMDATType)0); in ParseSectionSwitch() 321 unsigned Characteristics, in ParseSectionSwitch() argument 330 Section, Characteristics, Kind, COMDATSymName, Type)); in ParseSectionSwitch()
|
| /openbsd-src/gnu/llvm/llvm/tools/obj2yaml/ |
| H A D | coff2yaml.cpp | 98 YAMLObj.Header.Characteristics = Obj.getCharacteristics(); in dumpHeader() 164 NewYAMLSection.Header.Characteristics = COFFSection->Characteristics; in dumpSections() 177 uint32_t Shift = (COFFSection->Characteristics >> 20) & 0xF; in dumpSections() 248 YAMLWE.Characteristics = ObjWE->Characteristics; in dumpWeakExternal()
|
| /openbsd-src/gnu/llvm/llvm/docs/ |
| H A D | yaml2obj.rst | 25 Characteristics: [ IMAGE_SCN_CNT_CODE 88 Characteristics: 115 Characteristics:
|
| /openbsd-src/gnu/llvm/lld/COFF/ |
| H A D | Writer.cpp | 126 d->Characteristics = 0; in fillEntry() 334 header.Characteristics &= ~permMask; in setPermissions() 335 header.Characteristics |= c; in setPermissions() 355 (hdr->Characteristics & IMAGE_SCN_MEM_DISCARDABLE) == 0); in writeHeaderTo() 985 if (s->header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) { in createSections() 1273 if ((sec->header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) == 0) in createSymbolAndStringTable() 1379 (sec->header.Characteristics & IMAGE_SCN_CNT_CODE) && in assignAddresses() 1380 (sec->header.Characteristics & IMAGE_SCN_MEM_READ) && in assignAddresses() 1381 (sec->header.Characteristics & IMAGE_SCN_MEM_EXECUTE); in assignAddresses() 1442 coff->Characteristics = IMAGE_FILE_EXECUTABLE_IMAGE; in writeHeader() [all …]
|
| H A D | MapFile.cpp | 268 (sec->header.Characteristics & COFF::IMAGE_SCN_CNT_CODE) && in writeMapFile() 269 (sec->header.Characteristics & COFF::IMAGE_SCN_MEM_READ) && in writeMapFile() 270 (sec->header.Characteristics & COFF::IMAGE_SCN_MEM_EXECUTE); in writeMapFile()
|
| H A D | Writer.h | 42 header.Characteristics = chars; in OutputSection()
|
| H A D | PDB.cpp | 729 sc.Characteristics = secChunk->header->Characteristics; in createSectionContrib() 736 sc.Characteristics = os ? os->header.Characteristics : 0; in createSectionContrib() 1465 cgs.Characteristics = sec->characteristics; in addLinkerModuleCoffGroup() 1471 cgs.Characteristics |= llvm::COFF::IMAGE_SCN_MEM_WRITE; in addLinkerModuleCoffGroup() 1481 sym.Characteristics = os.header.Characteristics; in addLinkerModuleSectionSymbol()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/BinaryFormat/ |
| H A D | COFF.h | 71 uint16_t Characteristics; member 123 enum Characteristics : unsigned { enum 280 uint32_t Characteristics; member 435 uint32_t Characteristics; member
|
| /openbsd-src/gnu/llvm/llvm/lib/MC/ |
| H A D | MCContext.cpp | 661 unsigned Characteristics, in getCOFFSection() argument 686 CachedName, Characteristics, COMDATSymbol, Selection, Kind, Begin); in getCOFFSection() 693 unsigned Characteristics, in getCOFFSection() argument 696 return getCOFFSection(Section, Characteristics, Kind, "", 0, GenericSectionID, in getCOFFSection() 709 unsigned Characteristics = Sec->getCharacteristics(); in getAssociativeCOFFSection() local 711 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in getAssociativeCOFFSection() 712 return getCOFFSection(Sec->getName(), Characteristics, Sec->getKind(), in getAssociativeCOFFSection() 717 return getCOFFSection(Sec->getName(), Characteristics, Sec->getKind(), "", 0, in getAssociativeCOFFSection()
|
| H A D | WinCOFFObjectWriter.cpp | 330 Section->Header.Characteristics = MCSec.getCharacteristics(); in defineSection() 331 Section->Header.Characteristics |= getAlignment(MCSec); in defineSection() 418 Sym->Aux[0].Aux.WeakExternal.Characteristics = in DefineSymbol() 467 return (S->Header.Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) == in IsPhysicalSection() 496 W.write<uint16_t>(Header.Characteristics); in WriteFileHeader() 519 W.write<uint32_t>(i.Aux.WeakExternal.Characteristics); in WriteAuxiliarySymbols() 562 S.Characteristics |= COFF::IMAGE_SCN_LNK_NRELOC_OVFL; in writeSectionHeaders() 572 W.write<uint32_t>(S.Characteristics); in writeSectionHeaders() 909 Sym->Section->Header.Characteristics & COFF::IMAGE_SCN_LNK_COMDAT) in setWeakDefaultNames()
|
| H A D | MCSectionCOFF.cpp | 34 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in setSelection()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-rc/ |
| H A D | ResourceFileWriter.h | 79 uint32_t Characteristics; member 96 : LanguageInfo(0), Characteristics(0), VersionInfo(0), in ObjectInfo()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | TargetLoweringObjectFileImpl.cpp | 1653 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getExplicitSectionGlobal() local 1667 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in getExplicitSectionGlobal() 1673 return getContext().getCOFFSection(Name, Characteristics, Kind, COMDATSymName, in getExplicitSectionGlobal() 1702 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in SelectSectionForGlobal() local 1704 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in SelectSectionForGlobal() 1732 return getContext().getCOFFSection(Name, Characteristics, Kind, in SelectSectionForGlobal() 1737 return getContext().getCOFFSection(Name, Characteristics, Kind, TmpData, in SelectSectionForGlobal() 1790 unsigned Characteristics = getCOFFSectionFlags(Kind, TM); in getSectionForJumpTable() local 1791 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in getSectionForJumpTable() 1795 SecName, Characteristics, Kind, COMDATSymName, in getSectionForJumpTable() [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-readobj/ |
| H A D | COFFDumper.cpp | 366 const EnumEntry<COFF::Characteristics> ImageFileCharacteristics[] = { 773 W.printHex("Characteristics", D.Characteristics); in printCOFFDebugDirectory() 808 uint16_t Characteristics = RawData[0]; in printCOFFDebugDirectory() local 809 W.printFlags("ExtendedCharacteristics", Characteristics, in printCOFFDebugDirectory() 1437 W.printFlags("Characteristics", Section->Characteristics, in printSectionHeaders() 1458 !(Section->Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA)) { in printSectionHeaders() 1600 W.printEnum("Search", Aux->Characteristics, in printSymbol() 1628 if (Section && Section->Characteristics & COFF::IMAGE_SCN_LNK_COMDAT in printSymbol() 1966 W.printNumber("Characteristics", Table.Characteristics); in printResourceDirectoryTable() 2141 W.printFlags("Characteristics", TlsTable->Characteristics, in printCOFFTLSDirectory()
|