1## Test dumping dynamic symbols reports a warning if the operation is unsupported for the file format. 2# RUN: yaml2obj %s --docnum=1 -o %t.macho.o 3# RUN: llvm-objdump --dynamic-syms %t.macho.o 2>&1 | \ 4# RUN: FileCheck %s 5# RUN: yaml2obj %s --docnum=2 -o %t.coff.o 6# RUN: llvm-objdump --dynamic-syms %t.coff.o 2>&1 | \ 7# RUN: FileCheck %s 8# RUN: llvm-objdump --dynamic-syms %p/XCOFF/Inputs/xcoff-section-headers.o 2>&1 | \ 9# RUN: FileCheck %s 10 11# CHECK:DYNAMIC SYMBOL TABLE: 12# CHECK-NEXT: warning: {{.*}}: this operation is not currently supported for this file format 13# CHECK-EMPTY: 14 15--- !mach-o 16FileHeader: 17 magic: 0xFEEDFACF 18 cputype: 0x01000007 19 cpusubtype: 0x80000003 20 filetype: 0x00000002 21 ncmds: 0 22 sizeofcmds: 0 23 flags: 0x00218085 24 reserved: 0x00000000 25 26--- !COFF 27header: 28 Machine: IMAGE_FILE_MACHINE_AMD64 29 Characteristics: [] 30sections: [] 31symbols: [] 32