Home
last modified time | relevance | path

Searched refs:COFF (Results 1 – 25 of 103) sorted by relevance

12345

/external/llvm/test/Object/
Dobj2yaml-coff-section-aux-symbol.test1 RUN: yaml2obj %p/Inputs/COFF/section-aux-symbol.yaml | obj2yaml | FileCheck %s --check-prefix COFF-…
3 COFF-I386: sections:
4 COFF-I386-NEXT: - Name: .CRT
5 COFF-I386: symbols:
6 COFF-I386: - Name: '.CRT$XCAA'
7 COFF-I386-NEXT: Value: 4
8 COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
9 COFF-I386-NEXT: SectionDefinition:
10 COFF-I386-NEXT: Length: 4
11 COFF-I386-NEXT: NumberOfRelocations: 1
[all …]
Dobj2yaml.test1 RUN: obj2yaml %p/Inputs/trivial-object-test.coff-i386 | FileCheck %s --check-prefix COFF-I386
2 RUN: obj2yaml %p/Inputs/trivial-object-test.coff-x86-64 | FileCheck %s --check-prefix COFF-X86-64
9 COFF-I386: header:
10 COFF-I386-NEXT: Machine: IMAGE_FILE_MACHINE_I386
12 COFF-I386: sections:
13 COFF-I386-NEXT: - Name: .text
14 COFF-I386-NEXT: Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ…
15 COFF-I386-NEXT: Alignment: 16
16 COFF-I386-NEXT: SectionData: 83EC0CC744240800000000C7042400000000E800000000E8000000008B44240883…
18 COFF-I386: Relocations:
[all …]
Dyaml2obj-readobj.test1 …N: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-readobj -file-headers -relocations -expand-relocs - | …
2 RUN: yaml2obj -o %t %p/Inputs/COFF/i386.yaml
4 RUN: | FileCheck %s --check-prefix COFF-I386
6 // COFF-I386: Characteristics [ (0x200)
7 // COFF-I386-NEXT: IMAGE_FILE_DEBUG_STRIPPED (0x200)
8 // COFF-I386-NEXT: ]
10 // COFF-I386: Relocations [
11 // COFF-I386-NEXT: Section (1) .text {
12 // COFF-I386-NEXT: Relocation {
13 // COFF-I386-NEXT: Offset: 0xE
[all …]
Dnm-archive.test2 RUN: | FileCheck %s -check-prefix COFF
4 COFF: trivial-object-test.coff-i386:
5 COFF-NEXT: 00000000 d .data
6 COFF-NEXT: 00000000 t .text
7 COFF-NEXT: 00000000 d L_.str
8 COFF-NEXT: U _SomeOtherFunction
9 COFF-NEXT: 00000000 T _main
10 COFF-NEXT: U _puts
13 RUN: | FileCheck %s -check-prefix COFF-o
15 COFF-o: {{.*}}/archive-test.a-coff-i386:trivial-object-test.coff-i386: 00000000 d .data
[all …]
Dobjdump-section-content.test1 RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-objdump -s - | FileCheck %s -check-prefix COFF-i386
7 COFF-i386: file format
8 COFF-i386: Contents of section .text:
9 COFF-i386: 0000 83ec0cc7 44240800 000000c7 04240000 ....D$.......$..
10 COFF-i386: 0010 0000e800 000000e8 00000000 8b442408 .............D$.
11 COFF-i386: 0020 83c40cc3 ....
12 COFF-i386: Contents of section .data:
13 COFF-i386: 0000 48656c6c 6f20576f 726c6421 00 Hello World!.
Dobjdump-symbol-table.test1 RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-objdump -t - \
2 RUN: | FileCheck %s -check-prefix COFF-i386
10 COFF-i386: file format
11 COFF-i386: SYMBOL TABLE:
12 COFF-i386: [ 0](sec 1)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .text
13 COFF-i386: AUX scnlen 0x24 nreloc 3 nlnno 0 checksum 0x0 assoc 1 comdat 0
14 COFF-i386: [ 2](sec 2)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .data
15 COFF-i386: AUX scnlen 0xd nreloc 0 nlnno 0 checksum 0x0 assoc 2 comdat 0
16 COFF-i386: [ 4](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000 _main
17 COFF-i386: [ 5](sec 2)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x00000000 L_.str
[all …]
Dobjdump-file-header.test1 RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-objdump -f - | FileCheck %s -check-prefix COFF-i386
7 COFF-i386: : file format
8 COFF-i386: architecture: i386
9 COFF-i386: HAS_RELOC
10 COFF-i386: HAS_SYMS
11 COFF-i386: start address 0x
/external/llvm/test/tools/llvm-cxxdump/
Deh.test2 RUN: | FileCheck %s --check-prefix=COFF-I386
5 COFF-I386: ??_R0?AUA@@@8[VFPtr]: ??_7type_info@@6B@
6 COFF-I386: ??_R0?AUA@@@8[AlwaysZero]: 0
7 COFF-I386: ??_R0?AUA@@@8[MangledName]: .?AUA@@
8 COFF-I386: ??_R0?AUB@@@8[VFPtr]: ??_7type_info@@6B@
9 COFF-I386: ??_R0?AUB@@@8[AlwaysZero]: 0
10 COFF-I386: ??_R0?AUB@@@8[MangledName]: .?AUB@@
11 COFF-I386: ??_R0?AUC@@@8[VFPtr]: ??_7type_info@@6B@
12 COFF-I386: ??_R0?AUC@@@8[AlwaysZero]: 0
13 COFF-I386: ??_R0?AUC@@@8[MangledName]: .?AUC@@
[all …]
Dtrivial.test2 RUN: | FileCheck %s --check-prefix=COFF-I386
7 COFF-I386: ??_7S@@6B@[0]: ??_R4S@@6B@
8 COFF-I386-NEXT: ??_7S@@6B@[4]: ??_GS@@UAEPAXI@Z
9 COFF-I386-NEXT: ??_8S@@7B@[0]: -4
10 COFF-I386-NEXT: ??_8S@@7B@[4]: 4
11 COFF-I386-NEXT: ??_R4S@@6B@[IsImageRelative]: 0
12 COFF-I386-NEXT: ??_R4S@@6B@[OffsetToTop]: 0
13 COFF-I386-NEXT: ??_R4S@@6B@[VFPtrOffset]: 0
14 COFF-I386-NEXT: ??_R4S@@6B@[TypeDescriptor]: ??_R0?AUS@@@8
15 COFF-I386-NEXT: ??_R4S@@6B@[ClassHierarchyDescriptor]: ??_R3S@@8
[all …]
/external/llvm/include/llvm/Object/
DCOFFYAML.h23 namespace COFF {
56 COFF::section Header;
65 COFF::symbol Header;
66 COFF::SymbolBaseType SimpleType;
67 COFF::SymbolComplexType ComplexType;
68 Optional<COFF::AuxiliaryFunctionDefinition> FunctionDefinition;
69 Optional<COFF::AuxiliarybfAndefSymbol> bfAndefSymbol;
70 Optional<COFF::AuxiliaryWeakExternal> WeakExternal;
72 Optional<COFF::AuxiliarySectionDefinition> SectionDefinition;
73 Optional<COFF::AuxiliaryCLRToken> CLRToken;
[all …]
/external/llvm/test/tools/llvm-readobj/
Dsymbols.test2 RUN: | FileCheck %s -check-prefix COFF
6 COFF: Symbols [
7 COFF-NEXT: Symbol {
8 COFF-NEXT: Name: @comp.id
9 COFF-NEXT: Value: 14766605
10 COFF-NEXT: Section: IMAGE_SYM_ABSOLUTE (-1)
11 COFF-NEXT: BaseType: Null (0x0)
12 COFF-NEXT: ComplexType: Null (0x0)
13 COFF-NEXT: StorageClass: Static (0x3)
14 COFF-NEXT: AuxSymbolCount: 0
[all …]
Dfile-headers.test2 RUN: | FileCheck %s -check-prefix COFF-ARM
24 RUN: | FileCheck %s -check-prefix COFF-UNKNOWN
26 RUN: | FileCheck %s -check-prefix COFF-IMPORTLIB
28 COFF-ARM: File: {{(.*[/\\])?}}trivial.obj.coff-arm
29 COFF-ARM-NEXT: Format: COFF-ARM
30 COFF-ARM-NEXT: Arch: thumb
31 COFF-ARM-NEXT: AddressSize: 32bit
32 COFF-ARM-NEXT: ImageFileHeader {
33 COFF-ARM-NEXT: Machine: IMAGE_FILE_MACHINE_ARMNT (0x1C4)
34 COFF-ARM-NEXT: SectionCount: 2
[all …]
/external/llvm/tools/llvm-readobj/
DCOFFDumper.cpp148 static const EnumEntry<COFF::MachineTypes> ImageFileMachineType[] = {
149 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_UNKNOWN ),
150 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_AM33 ),
151 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_AMD64 ),
152 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_ARM ),
153 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_ARMNT ),
154 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_EBC ),
155 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_I386 ),
156 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_IA64 ),
157 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_M32R ),
[all …]
DARMWinEHPrinter.cpp187 Decoder::getSectionContaining(const COFFObjectFile &COFF, uint64_t VA) { in getSectionContaining() argument
188 for (const auto &Section : COFF.sections()) { in getSectionContaining()
198 ErrorOr<object::SymbolRef> Decoder::getSymbol(const COFFObjectFile &COFF, in getSymbol() argument
200 for (const auto &Symbol : COFF.symbols()) { in getSymbol()
516 bool Decoder::dumpXDataRecord(const COFFObjectFile &COFF, in dumpXDataRecord() argument
520 if (COFF.getSectionContents(COFF.getCOFFSection(Section), Contents)) in dumpXDataRecord()
573 getRelocatedSymbol(COFF, Section, HandlerOffset * sizeof(uint32_t)); in dumpXDataRecord()
575 Symbol = getSymbol(COFF, Address, /*FunctionOnly=*/true); in dumpXDataRecord()
589 bool Decoder::dumpUnpackedEntry(const COFFObjectFile &COFF, in dumpUnpackedEntry() argument
595 ErrorOr<SymbolRef> Function = getRelocatedSymbol(COFF, Section, Offset); in dumpUnpackedEntry()
[all …]
/external/llvm/lib/MC/
DMCObjectFileInfo.cpp523 ".bss", COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA | in InitCOFFMCObjectFileInfo()
524 COFF::IMAGE_SCN_MEM_READ | COFF::IMAGE_SCN_MEM_WRITE, in InitCOFFMCObjectFileInfo()
528 (IsWoA ? COFF::IMAGE_SCN_MEM_16BIT : (COFF::SectionCharacteristics)0) | in InitCOFFMCObjectFileInfo()
529 COFF::IMAGE_SCN_CNT_CODE | COFF::IMAGE_SCN_MEM_EXECUTE | in InitCOFFMCObjectFileInfo()
530 COFF::IMAGE_SCN_MEM_READ, in InitCOFFMCObjectFileInfo()
533 ".data", COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | COFF::IMAGE_SCN_MEM_READ | in InitCOFFMCObjectFileInfo()
534 COFF::IMAGE_SCN_MEM_WRITE, in InitCOFFMCObjectFileInfo()
537 ".rdata", COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | COFF::IMAGE_SCN_MEM_READ, in InitCOFFMCObjectFileInfo()
542 Ctx->getCOFFSection(".CRT$XCU", COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | in InitCOFFMCObjectFileInfo()
543 COFF::IMAGE_SCN_MEM_READ, in InitCOFFMCObjectFileInfo()
[all …]
DMCSectionCOFF.cpp36 Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT; in setSelection()
50 if (getCharacteristics() & COFF::IMAGE_SCN_CNT_INITIALIZED_DATA) in PrintSwitchToSection()
52 if (getCharacteristics() & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA) in PrintSwitchToSection()
54 if (getCharacteristics() & COFF::IMAGE_SCN_MEM_EXECUTE) in PrintSwitchToSection()
56 if (getCharacteristics() & COFF::IMAGE_SCN_MEM_WRITE) in PrintSwitchToSection()
58 else if (getCharacteristics() & COFF::IMAGE_SCN_MEM_READ) in PrintSwitchToSection()
62 if (getCharacteristics() & COFF::IMAGE_SCN_LNK_REMOVE) in PrintSwitchToSection()
64 if (getCharacteristics() & COFF::IMAGE_SCN_MEM_SHARED) in PrintSwitchToSection()
68 if (getCharacteristics() & COFF::IMAGE_SCN_LNK_COMDAT) { in PrintSwitchToSection()
71 case COFF::IMAGE_COMDAT_SELECT_NODUPLICATES: in PrintSwitchToSection()
[all …]
DWinCOFFObjectWriter.cpp42 typedef SmallString<COFF::NameSize> name;
54 COFF::Auxiliary Aux;
62 COFF::symbol Data;
83 COFF::relocation Data;
87 static size_t size() { return COFF::RelocationSize; } in size()
94 COFF::section Header;
118 COFF::header Header;
162 void WriteFileHeader(const COFF::header &Header);
165 void WriteSectionHeader(const COFF::section &S);
166 void WriteRelocation(const COFF::relocation &R);
[all …]
/external/llvm/lib/Object/
DCOFFYAML.cpp16 #define ECase(X) IO.enumCase(Value, #X, COFF::X);
20 Section::Section() { memset(&Header, 0, sizeof(COFF::section)); } in Section()
21 Symbol::Symbol() { memset(&Header, 0, sizeof(COFF::symbol)); } in Symbol()
22 Object::Object() { memset(&Header, 0, sizeof(COFF::header)); } in Object()
52 void ScalarEnumerationTraits<COFF::MachineTypes>::enumeration( in enumeration()
53 IO &IO, COFF::MachineTypes &Value) { in enumeration()
77 void ScalarEnumerationTraits<COFF::SymbolBaseType>::enumeration( in enumeration()
78 IO &IO, COFF::SymbolBaseType &Value) { in enumeration()
97 void ScalarEnumerationTraits<COFF::SymbolStorageClass>::enumeration( in enumeration()
98 IO &IO, COFF::SymbolStorageClass &Value) { in enumeration()
[all …]
/external/llvm/test/Object/X86/
Dobjdump-trivial-object.test2 RUN: | FileCheck %s -check-prefix COFF-i386
4 RUN: | FileCheck %s -check-prefix COFF-x86-64
10 COFF-i386: file format COFF-i386
11 COFF-i386: Disassembly of section .text:
12 COFF-i386: 0: 83 ec 0c subl $12, %esp
13 COFF-i386: 3: c7 44 24 08 00 00 00 00 movl $0, 8(%esp)
14 COFF-i386: b: c7 04 24 00 00 00 00 movl $0, (%esp)
15 COFF-i386: 12: e8 00 00 00 00 calll 0
16 COFF-i386: 17: e8 00 00 00 00 calll 0
17 COFF-i386: 1c: 8b 44 24 08 movl 8(%esp), %eax
[all …]
Dobjdump-disassembly-inline-relocations.test2 RUN: | FileCheck %s -check-prefix COFF-i386
4 RUN: | FileCheck %s -check-prefix COFF-x86-64
14 COFF-i386: file format COFF-i386
15 COFF-i386: Disassembly of section .text:
16 COFF-i386: 0: 83 ec 0c subl $12, %esp
17 COFF-i386: 3: c7 44 24 08 00 00 00 00 movl $0, 8(%esp)
18 COFF-i386: b: c7 04 24 00 00 00 00 movl $0, (%esp)
19 COFF-i386: e: IMAGE_REL_I386_DIR32 L_.str
20 COFF-i386: 12: e8 00 00 00 00 calll 0
21 COFF-i386: 13: IMAGE_REL_I386_REL32 _puts
[all …]
/external/llvm/lib/Target/X86/MCTargetDesc/
DX86WinCOFFObjectWriter.cpp37 : MCWinCOFFObjectTargetWriter(Is64Bit ? COFF::IMAGE_FILE_MACHINE_AMD64 in X86WinCOFFObjectWriter()
38 : COFF::IMAGE_FILE_MACHINE_I386) {} in X86WinCOFFObjectWriter()
51 if (getMachine() == COFF::IMAGE_FILE_MACHINE_AMD64) { in getRelocType()
56 return COFF::IMAGE_REL_AMD64_REL32; in getRelocType()
60 return COFF::IMAGE_REL_AMD64_ADDR32NB; in getRelocType()
61 return COFF::IMAGE_REL_AMD64_ADDR32; in getRelocType()
63 return COFF::IMAGE_REL_AMD64_ADDR64; in getRelocType()
65 return COFF::IMAGE_REL_AMD64_SECTION; in getRelocType()
67 return COFF::IMAGE_REL_AMD64_SECREL; in getRelocType()
71 } else if (getMachine() == COFF::IMAGE_FILE_MACHINE_I386) { in getRelocType()
[all …]
/external/llvm/lib/MC/MCParser/
DCOFFAsmParser.cpp41 COFF::COMDATType Type);
94 COFF::IMAGE_SCN_CNT_CODE in ParseSectionDirectiveText()
95 | COFF::IMAGE_SCN_MEM_EXECUTE in ParseSectionDirectiveText()
96 | COFF::IMAGE_SCN_MEM_READ, in ParseSectionDirectiveText()
101 COFF::IMAGE_SCN_CNT_INITIALIZED_DATA in ParseSectionDirectiveData()
102 | COFF::IMAGE_SCN_MEM_READ in ParseSectionDirectiveData()
103 | COFF::IMAGE_SCN_MEM_WRITE, in ParseSectionDirectiveData()
108 COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA in ParseSectionDirectiveBSS()
109 | COFF::IMAGE_SCN_MEM_READ in ParseSectionDirectiveBSS()
110 | COFF::IMAGE_SCN_MEM_WRITE, in ParseSectionDirectiveBSS()
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldCOFFX86_64.h69 case COFF::IMAGE_REL_AMD64_REL32: in resolveRelocation()
70 case COFF::IMAGE_REL_AMD64_REL32_1: in resolveRelocation()
71 case COFF::IMAGE_REL_AMD64_REL32_2: in resolveRelocation()
72 case COFF::IMAGE_REL_AMD64_REL32_3: in resolveRelocation()
73 case COFF::IMAGE_REL_AMD64_REL32_4: in resolveRelocation()
74 case COFF::IMAGE_REL_AMD64_REL32_5: { in resolveRelocation()
79 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation()
88 case COFF::IMAGE_REL_AMD64_ADDR32NB: { in resolveRelocation()
100 case COFF::IMAGE_REL_AMD64_ADDR64: { in resolveRelocation()
146 case COFF::IMAGE_REL_AMD64_REL32: in processRelocationRef()
[all …]
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMWinCOFFObjectWriter.cpp26 : MCWinCOFFObjectTargetWriter(COFF::IMAGE_FILE_MACHINE_ARMNT) { in ARMWinCOFFObjectWriter()
42 assert(getMachine() == COFF::IMAGE_FILE_MACHINE_ARMNT && in getRelocType()
56 return COFF::IMAGE_REL_ARM_ADDR32NB; in getRelocType()
58 return COFF::IMAGE_REL_ARM_SECREL; in getRelocType()
60 return COFF::IMAGE_REL_ARM_ADDR32; in getRelocType()
63 return COFF::IMAGE_REL_ARM_SECTION; in getRelocType()
65 return COFF::IMAGE_REL_ARM_SECREL; in getRelocType()
67 return COFF::IMAGE_REL_ARM_BRANCH20T; in getRelocType()
69 return COFF::IMAGE_REL_ARM_BRANCH24T; in getRelocType()
72 return COFF::IMAGE_REL_ARM_BLX23T; in getRelocType()
[all …]
/external/llvm/test/DebugInfo/X86/
Ddbg-asm.s2 # RUN: | llvm-readobj -r - | FileCheck -check-prefix CHECK-COFF %s
4 # RUN: | llvm-readobj -r - | FileCheck -check-prefix CHECK-COFF %s
12 # CHECK-COFF: Relocations [
13 # CHECK-COFF: Section {{.*}} .debug_info {
14 # CHECK-COFF: 0x6 IMAGE_REL_I386_SECREL .debug_abbrev
15 # CHECK-COFF: 0xC IMAGE_REL_I386_SECREL .debug_line
16 # CHECK-COFF: }
17 # CHECK-COFF: Section {{.*}} .debug_aranges {
18 # CHECK-COFF: 0x6 IMAGE_REL_I386_SECREL .debug_info
19 # CHECK-COFF: }
[all …]

12345