1## Show that yaml2obj rejects a symbol reference from a relocation if the symbol 2## does not exist. 3 4# RUN: not yaml2obj %s -o %t 2>&1 | FileCheck %s 5 6## Check we are able to report multiple errors. 7 8# CHECK: error: unknown symbol referenced: 'does_not_exist1' by YAML section '.rela.text' 9# CHECK: error: unknown symbol referenced: 'does_not_exist2' by YAML section '.rela.text' 10 11--- !ELF 12FileHeader: 13 Class: ELFCLASS64 14 Data: ELFDATA2LSB 15 Type: ET_REL 16 Machine: EM_X86_64 17Sections: 18 - Name: .text 19 Type: SHT_PROGBITS 20 - Name: .rela.text 21 Type: SHT_RELA 22 Info: .text 23 Link: .symtab 24 Relocations: 25 - Type: R_X86_64_PC32 26 Symbol: does_not_exist1 27 - Type: R_X86_64_PC32 28 Symbol: does_not_exist2 29