1 # RUN: yaml2obj --docnum=1 %s -o %t
2 # RUN: llvm-readobj -l %t | FileCheck %s
13 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
14 AddressAlign: 0x0000000000001000
18 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
20 AddressAlign: 0x0000000000000010
25 AddressAlign: 0x0000000000001000
41 #CHECK: ProgramHeaders [
42 #CHECK-NEXT: ProgramHeader {
43 #CHECK-NEXT: Type: PT_LOAD
44 #CHECK-NEXT: Offset: 0x1000
45 #CHECK-NEXT: VirtualAddress: 0xAAAA1000
46 #CHECK-NEXT: PhysicalAddress: 0xFFFF1000
47 #CHECK-NEXT: FileSize: 20
48 #CHECK-NEXT: MemSize: 20
53 #CHECK-NEXT: Alignment: 4096
55 #CHECK-NEXT: ProgramHeader {
56 #CHECK-NEXT: Type: PT_LOAD
57 #CHECK-NEXT: Offset: 0x2000
58 #CHECK-NEXT: VirtualAddress: 0xAAAA2000
59 #CHECK-NEXT: PhysicalAddress: 0xFFFF2000
60 #CHECK-NEXT: FileSize: 4
61 #CHECK-NEXT: MemSize: 4
65 #CHECK-NEXT: Alignment: 4096
69 ## Check we do not allow referencing sections that do not exist.
70 # RUN: not yaml2obj --docnum=2 %s -o %t 2>&1 | FileCheck %s --check-prefix=ERR
71 # ERR: error: Unknown section referenced: '.foo' by program header.