1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy %t %t2
3 # RUN: llvm-readobj --program-headers %t2 | FileCheck %s
14 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
16 AddressAlign: 0x0000000000001000
17 Content: "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
22 AddressAlign: 0x0000000000001000
23 Content: "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
54 #CHECK: ProgramHeaders [
55 #CHECK-NEXT: ProgramHeader {
56 #CHECK-NEXT: Type: PT_LOAD
57 #CHECK-NEXT: Offset: 0x1000
58 #CHECK-NEXT: VirtualAddress: 0x1000
59 #CHECK-NEXT: PhysicalAddress: 0x1000
60 #CHECK-NEXT: FileSize: 16
61 #CHECK-NEXT: MemSize: 16
66 #CHECK-NEXT: Alignment: 4096
68 #CHECK-NEXT: ProgramHeader {
69 #CHECK-NEXT: Type: PT_LOAD
70 #CHECK-NEXT: Offset: 0x2000
71 #CHECK-NEXT: VirtualAddress: 0x2000
72 #CHECK-NEXT: PhysicalAddress: 0x2000
73 #CHECK-NEXT: FileSize: 16
74 #CHECK-NEXT: MemSize: 16
79 #CHECK-NEXT: Alignment: 4096
81 #CHECK-NEXT: ProgramHeader {
82 #CHECK-NEXT: Type: PT_GNU_STACK
83 #CHECK-NEXT: Offset: 0x0
84 #CHECK-NEXT: VirtualAddress: 0x0
85 #CHECK-NEXT: PhysicalAddress: 0x0
86 #CHECK-NEXT: FileSize: 0
87 #CHECK-NEXT: MemSize: 0
92 #CHECK-NEXT: Alignment: 0
94 #CHECK-NEXT: ProgramHeader {
95 #CHECK-NEXT: Type: PT_LOAD
96 #CHECK-NEXT: Offset: 0x2010
97 #CHECK-NEXT: VirtualAddress: 0x2010
98 #CHECK-NEXT: PhysicalAddress: 0x2010
99 #CHECK-NEXT: FileSize: 0
100 #CHECK-NEXT: MemSize: 64
104 #CHECK-NEXT: Alignment: 1