xref: /llvm-project/llvm/test/tools/llvm-readobj/ELF/RISCV/validate-attr-section.test (revision 108ba4f4a48043067f0735f7f7c6f301045cf9b5)
1## We only implement attribute section printing for little-endian encoding.
2
3# RUN: yaml2obj %s -o %t.o
4# RUN: llvm-readobj -A %t.o 2>&1 | FileCheck %s -DFILE=%t.o
5
6# CHECK: warning: '[[FILE]]': attribute printing not implemented for big-endian RISC-V objects
7
8--- !ELF
9FileHeader:
10  Class:   ELFCLASS64
11## Test big-endian encoding.
12  Data:    ELFDATA2MSB
13  Type:    ET_REL
14  Machine: EM_RISCV
15Sections:
16  - Name: .riscv.attributes
17    Type: SHT_RISCV_ATTRIBUTES
18