diff options
Diffstat (limited to 'test/Object/Inputs')
21 files changed, 32 insertions, 4 deletions
diff --git a/test/Object/Inputs/COFF/i386.yaml b/test/Object/Inputs/COFF/i386.yaml index 7873df0a7e25d..ad1a4f100fa3a 100644 --- a/test/Object/Inputs/COFF/i386.yaml +++ b/test/Object/Inputs/COFF/i386.yaml @@ -1,3 +1,4 @@ +!COFF header: !Header Machine: IMAGE_FILE_MACHINE_I386 # (0x14c) Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ] diff --git a/test/Object/Inputs/COFF/long-file-symbol.yaml b/test/Object/Inputs/COFF/long-file-symbol.yaml index 37caad7962089..4a37a433e4362 100644 --- a/test/Object/Inputs/COFF/long-file-symbol.yaml +++ b/test/Object/Inputs/COFF/long-file-symbol.yaml @@ -1,4 +1,4 @@ ---- +--- !COFF header: Machine: IMAGE_FILE_MACHINE_AMD64 Characteristics: [ IMAGE_FILE_RELOCS_STRIPPED, IMAGE_FILE_LINE_NUMS_STRIPPED ] diff --git a/test/Object/Inputs/COFF/long-section-name.yaml b/test/Object/Inputs/COFF/long-section-name.yaml index a86f9019cd5c2..120418583170f 100644 --- a/test/Object/Inputs/COFF/long-section-name.yaml +++ b/test/Object/Inputs/COFF/long-section-name.yaml @@ -1,4 +1,4 @@ ---- +--- !COFF header: Machine: IMAGE_FILE_MACHINE_I386 Characteristics: [ IMAGE_FILE_RELOCS_STRIPPED, IMAGE_FILE_LINE_NUMS_STRIPPED, IMAGE_FILE_LOCAL_SYMS_STRIPPED, IMAGE_FILE_32BIT_MACHINE ] diff --git a/test/Object/Inputs/COFF/section-aux-symbol.yaml b/test/Object/Inputs/COFF/section-aux-symbol.yaml index 623af5589595b..67fba68afd47c 100644 --- a/test/Object/Inputs/COFF/section-aux-symbol.yaml +++ b/test/Object/Inputs/COFF/section-aux-symbol.yaml @@ -1,4 +1,4 @@ ---- +--- !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 ] diff --git a/test/Object/Inputs/COFF/weak-external.yaml b/test/Object/Inputs/COFF/weak-external.yaml index 064b44a4a38ff..3963bcdc557cb 100644 --- a/test/Object/Inputs/COFF/weak-external.yaml +++ b/test/Object/Inputs/COFF/weak-external.yaml @@ -1,4 +1,4 @@ ---- +--- !COFF header: Machine: IMAGE_FILE_MACHINE_I386 Characteristics: [ IMAGE_FILE_LINE_NUMS_STRIPPED, IMAGE_FILE_32BIT_MACHINE ] diff --git a/test/Object/Inputs/COFF/weak-externals.yaml b/test/Object/Inputs/COFF/weak-externals.yaml new file mode 100644 index 0000000000000..d0ec3137c7165 --- /dev/null +++ b/test/Object/Inputs/COFF/weak-externals.yaml @@ -0,0 +1,26 @@ +--- !COFF +header: + Machine: IMAGE_FILE_MACHINE_ARMNT + Characteristics: [ ] +sections: + - Name: .rdata + Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ] + Alignment: 1 + SectionData: '' +symbols: + - Name: Function + Value: 0 + SectionNumber: 0 + SimpleType: IMAGE_SYM_TYPE_NULL + ComplexType: IMAGE_SYM_DTYPE_NULL + StorageClass: IMAGE_SYM_CLASS_WEAK_EXTERNAL + WeakExternal: + TagIndex: 9 + Characteristics: IMAGE_WEAK_EXTERN_SEARCH_LIBRARY + - Name: .weak.Function.default + Value: 0 + SectionNumber: -1 + SimpleType: IMAGE_SYM_TYPE_NULL + ComplexType: IMAGE_SYM_DTYPE_NULL + StorageClass: IMAGE_SYM_CLASS_EXTERNAL +... diff --git a/test/Object/Inputs/COFF/x86-64.yaml b/test/Object/Inputs/COFF/x86-64.yaml index b8a863a429cde..2fd5a4d19ffd5 100644 --- a/test/Object/Inputs/COFF/x86-64.yaml +++ b/test/Object/Inputs/COFF/x86-64.yaml @@ -1,3 +1,4 @@ +!COFF header: !Header Machine: IMAGE_FILE_MACHINE_AMD64 # (0x8664) diff --git a/test/Object/Inputs/dyn-rel.so.elf-mips b/test/Object/Inputs/dyn-rel.so.elf-mips Binary files differnew file mode 100755 index 0000000000000..08fe70eae3031 --- /dev/null +++ b/test/Object/Inputs/dyn-rel.so.elf-mips diff --git a/test/Object/Inputs/invalid-sh_entsize.elf b/test/Object/Inputs/invalid-sh_entsize.elf Binary files differindex 9ea80731491c1..ed501311b29bf 100755 --- a/test/Object/Inputs/invalid-sh_entsize.elf +++ b/test/Object/Inputs/invalid-sh_entsize.elf diff --git a/test/Object/Inputs/macho-invalid-fat b/test/Object/Inputs/macho-invalid-fat Binary files differnew file mode 100644 index 0000000000000..1fa01903c531c --- /dev/null +++ b/test/Object/Inputs/macho-invalid-fat diff --git a/test/Object/Inputs/macho-invalid-fat.obj.elf-x86_64 b/test/Object/Inputs/macho-invalid-fat.obj.elf-x86_64 Binary files differnew file mode 100644 index 0000000000000..4fa5afb9087f7 --- /dev/null +++ b/test/Object/Inputs/macho-invalid-fat.obj.elf-x86_64 diff --git a/test/Object/Inputs/macho-invalid-too-small-segment-load-command.1 b/test/Object/Inputs/macho-invalid-too-small-segment-load-command.1 Binary files differnew file mode 100644 index 0000000000000..24e570665e7bd --- /dev/null +++ b/test/Object/Inputs/macho-invalid-too-small-segment-load-command.1 diff --git a/test/Object/Inputs/macho-universal-archive-bad1.x86_64.i386 b/test/Object/Inputs/macho-universal-archive-bad1.x86_64.i386 Binary files differnew file mode 100644 index 0000000000000..30ab297b09013 --- /dev/null +++ b/test/Object/Inputs/macho-universal-archive-bad1.x86_64.i386 diff --git a/test/Object/Inputs/macho-universal-archive-bad2.x86_64.i386 b/test/Object/Inputs/macho-universal-archive-bad2.x86_64.i386 Binary files differnew file mode 100644 index 0000000000000..763dbbc01caf8 --- /dev/null +++ b/test/Object/Inputs/macho-universal-archive-bad2.x86_64.i386 diff --git a/test/Object/Inputs/macho-universal-bad1.x86_64.i386 b/test/Object/Inputs/macho-universal-bad1.x86_64.i386 Binary files differnew file mode 100644 index 0000000000000..7fe21dc324a68 --- /dev/null +++ b/test/Object/Inputs/macho-universal-bad1.x86_64.i386 diff --git a/test/Object/Inputs/macho-universal-bad2.x86_64.i386 b/test/Object/Inputs/macho-universal-bad2.x86_64.i386 Binary files differnew file mode 100644 index 0000000000000..ec83c38fe60b8 --- /dev/null +++ b/test/Object/Inputs/macho-universal-bad2.x86_64.i386 diff --git a/test/Object/Inputs/macho-universal64-archive.x86_64.i386 b/test/Object/Inputs/macho-universal64-archive.x86_64.i386 Binary files differnew file mode 100644 index 0000000000000..1597357910c0f --- /dev/null +++ b/test/Object/Inputs/macho-universal64-archive.x86_64.i386 diff --git a/test/Object/Inputs/macho-universal64.x86_64.i386 b/test/Object/Inputs/macho-universal64.x86_64.i386 Binary files differnew file mode 100755 index 0000000000000..add12e44a354d --- /dev/null +++ b/test/Object/Inputs/macho-universal64.x86_64.i386 diff --git a/test/Object/Inputs/macho-valid-0-nsyms b/test/Object/Inputs/macho-valid-0-nsyms Binary files differnew file mode 100644 index 0000000000000..1a170ff8161ef --- /dev/null +++ b/test/Object/Inputs/macho-valid-0-nsyms diff --git a/test/Object/Inputs/macho64-invalid-incomplete-load-command.1 b/test/Object/Inputs/macho64-invalid-incomplete-load-command.1 Binary files differnew file mode 100644 index 0000000000000..f7b0789d4d0e3 --- /dev/null +++ b/test/Object/Inputs/macho64-invalid-incomplete-load-command.1 diff --git a/test/Object/Inputs/macho64-invalid-too-small-load-command.1 b/test/Object/Inputs/macho64-invalid-too-small-load-command.1 Binary files differnew file mode 100644 index 0000000000000..cb8886ed3f7e1 --- /dev/null +++ b/test/Object/Inputs/macho64-invalid-too-small-load-command.1 |