1## Test that we print a warning for ELF, WASM, and COFF but still dump the contents for all. 2 3# RUN: yaml2obj --docnum=1 %s -o %t_macho 4# RUN: yaml2obj --docnum=2 %s -o %t_coff 5# RUN: yaml2obj --docnum=3 %s -o %t_elf 6# RUN: yaml2obj --docnum=4 %s -o %t_wasm 7# RUN: yaml2obj --docnum=5 %s -o %t_xcoff 8 9# RUN: llvm-readobj --syms --sort-symbols=type,name \ 10# RUN: %t_coff %t_elf %t_wasm %t_xcoff %t_macho 2>&1 | FileCheck %s \ 11# RUN: -DMSG="--sort-symbols is not supported yet for this format" 12 13# CHECK: warning: '{{.+}}_coff': [[MSG]] 14# CHECK: Format: COFF-ARM 15# CHECK: warning: '{{.+}}_elf': [[MSG]] 16# CHECK: Format: elf64-unknown 17# CHECK: warning: '{{.+}}_wasm': [[MSG]] 18# CHECK: Format: WASM 19# CHECK: warning: '{{.+}}_xcoff': [[MSG]] 20# CHECK: Format: aixcoff-rs6000 21# CHECK-NOT: warning '{{.+}}_macho': [[MSG]] 22# CHECK: Format: Mach-O 64-bit x86-64 23 24--- !mach-o 25FileHeader: 26 magic: 0xFEEDFACF 27 cputype: 0x1000007 28 cpusubtype: 0x3 29 filetype: 0x1 30 ncmds: 0 31 sizeofcmds: 0 32 flags: 0x2000 33 reserved: 0x0 34... 35--- !COFF 36header: 37 Machine: IMAGE_FILE_MACHINE_ARMNT 38 Characteristics: [ ] 39sections: 40symbols: 41--- !ELF 42FileHeader: 43 Class: ELFCLASS64 44 Data: ELFDATA2LSB 45 Type: ET_EXEC 46Sections: 47 - Name: .gnu.version 48 Type: SHT_GNU_versym 49... 50--- !WASM 51FileHeader: 52 Version: 0x00000001 53Sections: 54 - Type: DATA 55 Segments: 56 - SectionOffset: 6 57 InitFlags: 0 58 Offset: 59 Opcode: GLOBAL_GET 60 Index: 1 61 Content: '64' 62... 63--- !XCOFF 64FileHeader: 65 MagicNumber: 0x01DF 66 CreationTime: 1 67 EntriesInSymbolTable: 1 68... 69