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
45 #CHECK: ProgramHeaders [
46 #CHECK-NEXT: ProgramHeader {
47 #CHECK-NEXT: Type: PT_LOAD
48 #CHECK-NEXT: Offset: 0x1000
49 #CHECK-NEXT: VirtualAddress: 0xAAAA1000
50 #CHECK-NEXT: PhysicalAddress: 0xFFFF1000
51 #CHECK-NEXT: FileSize: 20
52 #CHECK-NEXT: MemSize: 20
57 #CHECK-NEXT: Alignment: 4096
59 #CHECK-NEXT: ProgramHeader {
60 #CHECK-NEXT: Type: PT_LOAD
61 #CHECK-NEXT: Offset: 0x2000
62 #CHECK-NEXT: VirtualAddress: 0xAAAA2000
63 #CHECK-NEXT: PhysicalAddress: 0xFFFF2000
64 #CHECK-NEXT: FileSize: 4
65 #CHECK-NEXT: MemSize: 4
69 #CHECK-NEXT: Alignment: 4096