brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 0d01c9b Raw
69 lines · plain
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_macho4# RUN: yaml2obj --docnum=2 %s -o %t_coff5# RUN: yaml2obj --docnum=3 %s -o %t_elf6# RUN: yaml2obj --docnum=4 %s -o %t_wasm7# RUN: yaml2obj --docnum=5 %s -o %t_xcoff8 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-ARM15# CHECK: warning: '{{.+}}_elf': [[MSG]]16# CHECK: Format: elf64-unknown17# CHECK: warning: '{{.+}}_wasm': [[MSG]]18# CHECK: Format: WASM19# CHECK: warning: '{{.+}}_xcoff': [[MSG]]20# CHECK: Format: aixcoff-rs600021# CHECK-NOT: warning '{{.+}}_macho': [[MSG]]22# CHECK: Format: Mach-O 64-bit x86-6423 24--- !mach-o25FileHeader:26  magic:           0xFEEDFACF27  cputype:         0x100000728  cpusubtype:      0x329  filetype:        0x130  ncmds:           031  sizeofcmds:      032  flags:           0x200033  reserved:        0x034...35--- !COFF36header:37  Machine:         IMAGE_FILE_MACHINE_ARMNT38  Characteristics: [  ]39sections:40symbols:41--- !ELF42FileHeader:43  Class: ELFCLASS6444  Data:  ELFDATA2LSB45  Type:  ET_EXEC46Sections:47  - Name:    .gnu.version48    Type:    SHT_GNU_versym49...50--- !WASM51FileHeader:52  Version:         0x0000000153Sections:54  - Type:            DATA55    Segments:56      - SectionOffset:   657        InitFlags:       058        Offset:59          Opcode:          GLOBAL_GET60          Index:           161        Content:         '64'62...63--- !XCOFF64FileHeader:65  MagicNumber:         0x01DF66  CreationTime:        167  EntriesInSymbolTable: 168...69