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 ]
15 AddressAlign: 0x0000000000001000
19 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
21 AddressAlign: 0x0000000000000010
26 AddressAlign: 0x0000000000001000
42 #CHECK: ProgramHeaders [
43 #CHECK-NEXT: ProgramHeader {
44 #CHECK-NEXT: Type: PT_LOAD
45 #CHECK-NEXT: Offset: 0x1000
46 #CHECK-NEXT: VirtualAddress: 0xAAAA1000
47 #CHECK-NEXT: PhysicalAddress: 0xFFFF1000
48 #CHECK-NEXT: FileSize: 20
49 #CHECK-NEXT: MemSize: 20
54 #CHECK-NEXT: Alignment: 4096
56 #CHECK-NEXT: ProgramHeader {
57 #CHECK-NEXT: Type: PT_LOAD
58 #CHECK-NEXT: Offset: 0x2000
59 #CHECK-NEXT: VirtualAddress: 0xAAAA2000
60 #CHECK-NEXT: PhysicalAddress: 0xFFFF2000
61 #CHECK-NEXT: FileSize: 4
62 #CHECK-NEXT: MemSize: 4
66 #CHECK-NEXT: Alignment: 4096