1 # RUN: yaml2obj --docnum=1 %s -o %t1
2 # RUN: llvm-readobj --sections %t1 | FileCheck %s
4 # CHECK: Name: .rela.text
5 # CHECK-NEXT: Type: SHT_RELA
12 # CHECK-NEXT: Info: 12345
27 ## Check we report an error when a relocation section references an unknown section via its Info field.
29 # RUN: not yaml2obj --docnum=2 %s 2>&1 | FileCheck %s --implicit-check-not=error --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'
33 # ERR: error: yaml2obj failed