1 # Show that yaml2obj properly emits program headers with explicit file size,
2 # memory size and offset parameters.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-readobj %t --program-headers | FileCheck %s
7 # CHECK: ProgramHeaders [
8 # CHECK: Offset: 0x1234
9 # CHECK: FileSize: 1111
10 # CHECK: MemSize: 9999
12 # CHECK: Offset: 0x2000
16 # CHECK: Offset: 0x2000
20 # CHECK: Offset: 0x1FFF
24 # CHECK: Offset: 0xFFE
28 # CHECK: Offset: 0x3000
32 # CHECK: Offset: 0x2004
64 # Intentionally set to 0x2009 though the previous section is SHT_NOBITS.
68 # Program header with no sections.
69 - Type: 0x6abcdef0 # arbitrary type
73 # Program header with only file size set.
78 # Program header with only mem size set.
83 # Program header with only offset set.
88 # Program header with sections, valid properties.
95 # Program header with sections, invalid properties.
102 # Program header with 2 SHT_NOBITS sections.