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 ]
20 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
26 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
42 # CHECK: ProgramHeaders [
43 # CHECK-NEXT: ProgramHeader {
44 # CHECK-NEXT: Type: PT_LOAD (0x1)
45 # CHECK-NEXT: Offset: 0x1000
46 # CHECK-NEXT: VirtualAddress: 0x1000
47 # CHECK-NEXT: PhysicalAddress: 0x1000
48 # CHECK-NEXT: FileSize: 4096
49 # CHECK-NEXT: MemSize: 4096
50 # CHECK-NEXT: Flags [ (0x4)
51 # CHECK-NEXT: PF_R (0x4)
53 # CHECK-NEXT: Alignment: 4096
55 # CHECK-NEXT: ProgramHeader {
56 # CHECK-NEXT: Type: PT_LOAD (0x1)
57 # CHECK-NEXT: Offset: 0x2000
58 # CHECK-NEXT: VirtualAddress: 0x3000
59 # CHECK-NEXT: PhysicalAddress: 0x3000
60 # CHECK-NEXT: FileSize: 4096
61 # CHECK-NEXT: MemSize: 4096
62 # CHECK-NEXT: Flags [ (0x5)
63 # CHECK-NEXT: PF_R (0x4)
64 # CHECK-NEXT: PF_X (0x1)
66 # CHECK-NEXT: Alignment: 4096