summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/obj2yaml/sections-info.yaml
blob: f7ec4f625b99a83c17fdc5139a262da5a31c3b9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Check that obj2yaml does not write a section Info
## field in the case when it has a value of zero.

# RUN: yaml2obj %s -o %t
# RUN: obj2yaml %t | FileCheck %s

# CHECK:      Sections:
# CHECK-NEXT:  - Name: .foo
# CHECK-NEXT:    Type: SHT_PROGBITS
# CHECK-NEXT:  - Name: .bar
# CHECK-NEXT:    Type: SHT_PROGBITS
# CHECK-NEXT:    Info: 0x0000000000000001

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_DYN
  Machine: EM_X86_64
Sections:
  - Name: .foo
    Type: SHT_PROGBITS
  - Name: .bar
    Type: SHT_PROGBITS
    Info: 1
OpenPOWER on IntegriCloud