1 # RUN: yaml2obj --docnum=1 %s -o %t1.o
2 # RUN: not ld.lld %t1.o -o /dev/null 2>&1 | FileCheck %s
3 # CHECK: error: {{.*}}.o: relocation section (index 2) has invalid sh_info (0)
14 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
26 # RUN: yaml2obj --docnum=2 %s -o %t2.o
27 # RUN: not ld.lld %t2.o -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR2
28 # ERR2: error: {{.*}}.o: relocation section (index 2) has invalid sh_info (99)
39 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
51 ## Relocation refers to a symbol with index larger than
52 ## symbol table size. Check we report it.
53 # RUN: yaml2obj --docnum=3 %s -o %t2.o
54 # RUN: not ld.lld %t2.o -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR3
55 # ERR3: error: {{.*}}.o: invalid symbol index
66 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]