llvm-for-llvmta/test/tools/llvm-readobj/ELF/no-action.test

37 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
## Show the behavior of llvm-readobj/llvm-readelf when no operations are requested.
## Check the behavior on ET_EXEC input.
# RUN: yaml2obj -DTYPE=ET_EXEC %s -o %t.exe
# RUN: llvm-readobj %t.exe | FileCheck %s -DFILE=%t.exe --check-prefix LLVM
# RUN: llvm-readelf %t.exe | FileCheck %s -DFILE=%t.exe --check-prefix GNU --allow-empty
# LLVM: File: [[FILE]]
# LLVM: Format: elf64-x86-64
# LLVM: Arch: x86_64
# LLVM: AddressSize: 64bit
# LLVM: LoadName: <Not found>{{$}}
# LLVM-EMPTY:
# LLVM-NOT: {{.}}
# GNU-NOT: {{.}}
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: [[TYPE]]
Machine: EM_X86_64
## Check the behavior on ET_REL input.
# RUN: yaml2obj -DTYPE=ET_REL %s -o %t.o
# RUN: llvm-readobj %t.o | FileCheck %s -DFILE=%t.o --check-prefix LLVM
# RUN: llvm-readelf %t.o | FileCheck %s -DFILE=%t.o --check-prefix GNU --allow-empty
## Check the behavior on ET_DYN input.
# RUN: yaml2obj -DTYPE=ET_DYN %s -o %t.so
# RUN: llvm-readobj %t.so | FileCheck %s -DFILE=%t.so --check-prefix LLVM
# RUN: llvm-readelf %t.so | FileCheck %s -DFILE=%t.so --check-prefix GNU --allow-empty