1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/tools/obj2yaml/coff-section-aux-symbol.test
George Rimar 00b2899f15 [test/Object, obj2yaml] - Move test cases from test/Object and cleanup.
test/Object is not correct place to have tests that check obj2yaml
functionality, because we have test/tools/obj2yaml folder for that.

In this patch I merged a few test cases with their YAMLs from Inputs
folder, converted one of binary inputs and moved them to
tools/obj2yaml folder.

There are still another tests that might need the same, so it is initial step. 

Differential revision: https://reviews.llvm.org/D64555

llvm-svn: 365891
2019-07-12 10:29:29 +00:00

265 lines
9.4 KiB
Plaintext

# RUN: yaml2obj %s | obj2yaml | FileCheck %s --check-prefix COFF-I386
# COFF-I386: sections:
# COFF-I386-NEXT: - Name: .CRT
# COFF-I386: symbols:
# COFF-I386: - Name: '.CRT$XCAA'
# COFF-I386-NEXT: Value: 4
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 1
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XIAA'
# COFF-I386-NEXT: Value: 16
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 1
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XLD'
# COFF-I386-NEXT: Value: 36
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 1
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XLC'
# COFF-I386-NEXT: Value: 32
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 1
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XDZ'
# COFF-I386-NEXT: Value: 48
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 0
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XDA'
# COFF-I386-NEXT: Value: 44
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 0
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XLZ'
# COFF-I386-NEXT: Value: 40
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 0
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XLA'
# COFF-I386-NEXT: Value: 28
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 0
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XIC'
# COFF-I386-NEXT: Value: 20
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 1
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XCZ'
# COFF-I386-NEXT: Value: 8
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 0
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XCA'
# COFF-I386-NEXT: Value: 0
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 0
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XIZ'
# COFF-I386-NEXT: Value: 24
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 0
# COFF-I386-NEXT: NumberOfLinenumbers: 0
# COFF-I386: - Name: '.CRT$XIA'
# COFF-I386-NEXT: Value: 12
# COFF-I386: StorageClass: IMAGE_SYM_CLASS_STATIC
# COFF-I386-NEXT: SectionDefinition:
# COFF-I386-NEXT: Length: 4
# COFF-I386-NEXT: NumberOfRelocations: 0
# COFF-I386-NEXT: NumberOfLinenumbers: 0
--- !COFF
header:
Machine: IMAGE_FILE_MACHINE_I386
Characteristics: [ IMAGE_FILE_RELOCS_STRIPPED, IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LINE_NUMS_STRIPPED, IMAGE_FILE_32BIT_MACHINE, IMAGE_FILE_DEBUG_STRIPPED ]
sections:
- Name: .CRT
Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
Alignment: 4
SectionData: 0000000030114000000000000000000010104000401640000000000000000000B015400060154000000000000000000000000000
symbols:
- Name: '.CRT$XCAA'
Value: 4
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XIAA'
Value: 16
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XLD'
Value: 36
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XLC'
Value: 32
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XDZ'
Value: 48
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XDA'
Value: 44
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XLZ'
Value: 40
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XLA'
Value: 28
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XIC'
Value: 20
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 1
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XCZ'
Value: 8
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XCA'
Value: 0
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XIZ'
Value: 24
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.CRT$XIA'
Value: 12
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 4
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
...