summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/yaml2obj/ELF/no-phdrs.yaml
blob: e056b808e2fc82dcf1e5e9610d1619becba58403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## Check that e_phoff and e_phentsize are set to 0 when there are no
## program headers.

# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj --file-headers %t | FileCheck %s

# CHECK: ProgramHeaderOffset: 0x0{{$}}
# CHECK: ProgramHeaderEntrySize: 0{{$}}

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