llvm-for-llvmta/test/tools/llvm-objdump/unimplemented-features.test

32 lines
920 B
Plaintext
Raw Normal View History

2022-04-25 10:02:23 +02:00
## Test dumping dynamic symbols reports a warning if the operation is unsupported for the file format.
# RUN: yaml2obj %s --docnum=1 -o %t.macho.o
# RUN: llvm-objdump --dynamic-syms %t.macho.o 2>&1 | \
# RUN: FileCheck %s
# RUN: yaml2obj %s --docnum=2 -o %t.coff.o
# RUN: llvm-objdump --dynamic-syms %t.coff.o 2>&1 | \
# RUN: FileCheck %s
# RUN: llvm-objdump --dynamic-syms %p/XCOFF/Inputs/xcoff-section-headers.o 2>&1 | \
# RUN: FileCheck %s
# CHECK:DYNAMIC SYMBOL TABLE:
# CHECK-NEXT: warning: {{.*}}: this operation is not currently supported for this file format
# CHECK-EMPTY:
--- !mach-o
FileHeader:
magic: 0xFEEDFACF
cputype: 0x01000007
cpusubtype: 0x80000003
filetype: 0x00000002
ncmds: 0
sizeofcmds: 0
flags: 0x00218085
reserved: 0x00000000
--- !COFF
header:
Machine: IMAGE_FILE_MACHINE_AMD64
Characteristics: []
sections: []
symbols: []