37 lines · plain
1## Show the behavior of llvm-readobj/llvm-readelf when no operations are requested.2 3## Check the behavior on ET_EXEC input.4 5# RUN: yaml2obj -DTYPE=ET_EXEC %s -o %t.exe6# RUN: llvm-readobj %t.exe | FileCheck %s -DFILE=%t.exe --check-prefix LLVM7# RUN: llvm-readelf %t.exe | FileCheck %s -DFILE=%t.exe --check-prefix GNU --allow-empty8 9# LLVM: File: [[FILE]]10# LLVM: Format: elf64-x86-6411# LLVM: Arch: x86_6412# LLVM: AddressSize: 64bit13# LLVM: LoadName: <Not found>{{$}}14# LLVM-EMPTY:15# LLVM-NOT: {{.}}16 17# GNU-NOT: {{.}}18 19--- !ELF20FileHeader:21 Class: ELFCLASS6422 Data: ELFDATA2LSB23 Type: [[TYPE]]24 Machine: EM_X86_6425 26## Check the behavior on ET_REL input.27 28# RUN: yaml2obj -DTYPE=ET_REL %s -o %t.o29# RUN: llvm-readobj %t.o | FileCheck %s -DFILE=%t.o --check-prefix LLVM30# RUN: llvm-readelf %t.o | FileCheck %s -DFILE=%t.o --check-prefix GNU --allow-empty31 32## Check the behavior on ET_DYN input.33 34# RUN: yaml2obj -DTYPE=ET_DYN %s -o %t.so35# RUN: llvm-readobj %t.so | FileCheck %s -DFILE=%t.so --check-prefix LLVM36# RUN: llvm-readelf %t.so | FileCheck %s -DFILE=%t.so --check-prefix GNU --allow-empty37