llvm-project/llvm/test/tools/llvm-readobj/ELF/ARM/attribute-big-endian.test
Jozef Lawrynowicz 108ba4f4a4 [llvm-readobj] Refactor ELFDumper::printAttributes()
The current implementation of printAttributes makes it fiddly to extend
attribute support for new targets.

By refactoring the code so all target specific variables are
initialized in a switch/case statement, it becomes simpler to extend
attribute support for new targets.

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D107968
2021-08-17 13:28:31 -07:00

18 lines
454 B
Plaintext

## We only implement attribute section printing for little-endian encoding.
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-readobj -A %t.o 2>&1 | FileCheck %s -DFILE=%t.o
# CHECK: warning: '[[FILE]]': attribute printing not implemented for big-endian ARM objects
--- !ELF
FileHeader:
Class: ELFCLASS32
## Test big-endian encoding.
Data: ELFDATA2MSB
Type: ET_REL
Machine: EM_ARM
Sections:
- Name: .ARM.attributes
Type: SHT_ARM_ATTRIBUTES