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
25 ## Check we report an error when a relocation section references an unknown section via its Info field.
27 # RUN: not yaml2obj --docnum=2 %s 2>&1 | FileCheck %s --implicit-check-not=error --check-prefix=ERR
29 # ERR: error: unknown section referenced: '.unknown1' by YAML section '.foo'
30 # ERR: error: unknown section referenced: '.unknown2' by YAML section '.bar'