1 ## Check we don't suggest alternative spelling for relocations to symbols
2 ## defined in discarded sections.
4 # RUN: yaml2obj %s -o %t.o
5 # RUN: not ld.lld %t.o %t.o -o /dev/null 2>&1 | FileCheck %s
7 # CHECK-NOT: did you mean:
21 - SectionOrType: GRP_COMDAT
22 - SectionOrType: .text.foo
25 Flags: [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
34 ## Relocation which references ".text.foo". Check we don't suggest the
35 ## section symbol for ".data", which has an empty name.
39 ## Relocation which references "foo". Check we don't suggest "for".
57 ## Check we don't suggest an empty name symbol (e.g. STT_SECTION).
59 # RUN: yaml2obj --docnum=2 %s -o %t2.o
60 # RUN: not ld.lld %t2.o -o /dev/null 2>&1 | FileCheck %s
71 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]