22 lines
603 B
Plaintext
22 lines
603 B
Plaintext
## This test case is used to ensure llvm-readobj checks the version of
|
|
## attribute sections correctly.
|
|
|
|
# RUN: yaml2obj %s -D BITS=32 -o %t.32.o
|
|
# RUN: llvm-readobj -A %t.32.o 2>&1 | FileCheck -DFILE=%t %s
|
|
# RUN: yaml2obj %s -D BITS=64 -o %t.64.o
|
|
# RUN: llvm-readobj -A %t.64.o 2>&1 | FileCheck -DFILE=%t %s
|
|
|
|
# CHECK: warning: '[[FILE]].{{32|64}}.o': unrecognised FormatVersion: 0x42
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS[[BITS]]
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_RISCV
|
|
Sections:
|
|
- Name: .riscv.attributes
|
|
Type: SHT_RISCV_ATTRIBUTES
|
|
## Version: 'B'
|
|
Content: 42
|