1 # RUN: yaml2obj --docnum=1 %s -o %t1
2 # RUN: llvm-readobj --sections %t1 | FileCheck %s
5 # CHECK-NEXT: Type: SHT_PROGBITS
7 # CHECK-NEXT: SHF_ALLOC
8 # CHECK-NEXT: SHF_EXECINSTR
10 # CHECK-NEXT: Address:
13 # CHECK-NEXT: Link: 12345
24 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
27 ## Check we report an error when an unknown section is referenced via a Link field.
29 # RUN: not yaml2obj --docnum=2 %s 2>&1 | FileCheck %s --check-prefix=ERR
31 # ERR: error: unknown section referenced: '.unknown1' by YAML section '.foo'
32 # ERR: error: unknown section referenced: '.unknown2' by YAML section '.bar'