summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/yaml2obj/elf-abiversion.yaml
blob: 0aab621d257934ff7a7354c591ae2043fa47fc2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj --file-headers %t | FileCheck %s --check-prefix=FROMYAML
# RUN: obj2yaml %t | FileCheck %s --check-prefix=TOYAML

## Check we are able to parse/emit the ABI version with yaml2obj/obj2yaml.

# FROMYAML: ABIVersion: 5
# TOYAML:   ABIVersion: 0x05

--- !ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_REL
  Machine:         EM_X86_64
  ABIVersion:      0x05
OpenPOWER on IntegriCloud