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
20 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
23 AddressAlign: 0x0000000000000010
29 AddressAlign: 0x0000000000001000
44 #CHECK: ProgramHeaders [
45 #CHECK-NEXT: ProgramHeader {
46 #CHECK-NEXT: Type: PT_LOAD
47 #CHECK-NEXT: Offset: 0x1000
48 #CHECK-NEXT: VirtualAddress: 0xAAAA1000
49 #CHECK-NEXT: PhysicalAddress: 0xFFFF1000
50 #CHECK-NEXT: FileSize: 20
51 #CHECK-NEXT: MemSize: 20
56 #CHECK-NEXT: Alignment: 4096
58 #CHECK-NEXT: ProgramHeader {
59 #CHECK-NEXT: Type: PT_LOAD
60 #CHECK-NEXT: Offset: 0x2000
61 #CHECK-NEXT: VirtualAddress: 0xAAAA2000
62 #CHECK-NEXT: PhysicalAddress: 0xFFFF2000
63 #CHECK-NEXT: FileSize: 4
64 #CHECK-NEXT: MemSize: 4
68 #CHECK-NEXT: Alignment: 4096