brintos

brintos / llvm-project-archived public Read only

0
0
Text · 820 B · 1eb376f Raw
30 lines · yaml
1## Show that yaml2obj rejects a symbol reference from a relocation if the symbol2## does not exist.3 4# RUN: not yaml2obj %s -o %t 2>&1 | FileCheck %s5# RUN: not yaml2obj -DTYPE=SHT_CREL %s -o %t 2>&1 | FileCheck %s6 7## Check we are able to report multiple errors.8 9# CHECK: error: unknown symbol referenced: 'does_not_exist1' by YAML section '.rela.text'10# CHECK: error: unknown symbol referenced: 'does_not_exist2' by YAML section '.rela.text'11 12--- !ELF13FileHeader:14  Class:   ELFCLASS6415  Data:    ELFDATA2LSB16  Type:    ET_REL17  Machine: EM_X86_6418Sections:19  - Name: .text20    Type: SHT_PROGBITS21  - Name: .rela.text22    Type: [[TYPE=SHT_RELA]]23    Info: .text24    Link: .symtab25    Relocations:26      - Type: R_X86_64_PC3227        Symbol: does_not_exist128      - Type: R_X86_64_PC3229        Symbol: does_not_exist230