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"
59 #CHECK: ProgramHeaders [
60 #CHECK-NEXT: ProgramHeader {
61 #CHECK-NEXT: Type: PT_LOAD
62 #CHECK-NEXT: Offset: 0x1000
63 #CHECK-NEXT: VirtualAddress: 0x1000
64 #CHECK-NEXT: PhysicalAddress: 0x1000
65 #CHECK-NEXT: FileSize: 16
66 #CHECK-NEXT: MemSize: 16
71 #CHECK-NEXT: Alignment: 4096
73 #CHECK-NEXT: ProgramHeader {
74 #CHECK-NEXT: Type: PT_LOAD
75 #CHECK-NEXT: Offset: 0x2000
76 #CHECK-NEXT: VirtualAddress: 0x2000
77 #CHECK-NEXT: PhysicalAddress: 0x2000
78 #CHECK-NEXT: FileSize: 16
79 #CHECK-NEXT: MemSize: 16
84 #CHECK-NEXT: Alignment: 4096
86 #CHECK-NEXT: ProgramHeader {
87 #CHECK-NEXT: Type: PT_GNU_STACK
88 #CHECK-NEXT: Offset: 0x0
89 #CHECK-NEXT: VirtualAddress: 0x0
90 #CHECK-NEXT: PhysicalAddress: 0x0
91 #CHECK-NEXT: FileSize: 0
92 #CHECK-NEXT: MemSize: 0
97 #CHECK-NEXT: Alignment: 0
99 #CHECK-NEXT: ProgramHeader {
100 #CHECK-NEXT: Type: PT_LOAD
101 #CHECK-NEXT: Offset: 0x2010
102 #CHECK-NEXT: VirtualAddress: 0x2010
103 #CHECK-NEXT: PhysicalAddress: 0x2010
104 #CHECK-NEXT: FileSize: 0
105 #CHECK-NEXT: MemSize: 64
109 #CHECK-NEXT: Alignment: 1