mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
09c8bd89d5
https://bugs.llvm.org/show_bug.cgi?id=41910 The feature can disassemble data and the new option name reflects its more generic usage. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D75816
22 lines
681 B
Plaintext
22 lines
681 B
Plaintext
## Warn if --disassemble-symbols specifies an unknown symbol.
|
|
|
|
# RUN: yaml2obj -o %t.o %s
|
|
# RUN: rm -f %t.a
|
|
# RUN: llvm-ar qc %t.a %t.o %t.o
|
|
# RUN: llvm-objdump --disassemble-symbols=foo %t.o 2>&1 | FileCheck %s
|
|
# RUN: llvm-objdump --disassemble-symbols=foo %t.a 2>&1 | FileCheck %s --check-prefix=MULTI
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
|
|
# CHECK: warning: {{.*}}: failed to disassemble missing symbol foo
|
|
|
|
# MULTI: file format elf64-x86-64
|
|
# MULTI: warning: {{.*}}: failed to disassemble missing symbol foo
|
|
# MULTI: file format elf64-x86-64
|
|
# MULTI: warning: {{.*}}: failed to disassemble missing symbol foo
|