1 # This test tests that if two non-overlapping segments are right next to each
2 # other no problems arise.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-objcopy %t %t2
6 # RUN: llvm-readobj --program-headers %t2 | FileCheck %s
17 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
22 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
35 #CHECK: ProgramHeaders [
36 #CHECK-NEXT: ProgramHeader {
37 #CHECK-NEXT: Type: PT_LOAD (0x1)
38 #CHECK-NEXT: Offset: 0x1000
39 #CHECK-NEXT: VirtualAddress: 0x0
40 #CHECK-NEXT: PhysicalAddress: 0x0
41 #CHECK-NEXT: FileSize: 24
42 #CHECK-NEXT: MemSize: 24
43 #CHECK-NEXT: Flags [ (0x5)
44 #CHECK-NEXT: PF_R (0x4)
45 #CHECK-NEXT: PF_X (0x1)
47 #CHECK-NEXT: Alignment: 4096
49 #CHECK-NEXT: ProgramHeader {
50 #CHECK-NEXT: Type: PT_LOAD (0x1)
51 #CHECK-NEXT: Offset: 0x1020
52 #CHECK-NEXT: VirtualAddress: 0x0
53 #CHECK-NEXT: PhysicalAddress: 0x0
54 #CHECK-NEXT: FileSize: 16
55 #CHECK-NEXT: MemSize: 16
56 #CHECK-NEXT: Flags [ (0x5)
57 #CHECK-NEXT: PF_R (0x4)
58 #CHECK-NEXT: PF_X (0x1)
60 #CHECK-NEXT: Alignment: 16