https://bugs.llvm.org/show_bug.cgi?id=50111

            Bug ID: 50111
           Summary: lld/ELF typo correction produces confusing output
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: nicolaswe...@gmx.de
                CC: llvm-bugs@lists.llvm.org, smithp...@googlemail.com

thakis@thakis:~/src/hack$ cat test.cc
extern int i;
int main() { return i; }

thakis@thakis:~/src/hack$ ~/src/llvm-project/out/gn/bin/clang -c -g test.cc 
thakis@thakis:~/src/hack$ ~/src/llvm-project/out/gn/bin/clang -fuse-ld=lld
test.o 
ld.lld: error: undefined symbol: i
>>> referenced by test.cc:2
>>>               test.o:(main)
>>> did you mean: 
>>> defined in: test.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)


1. Why is there a symbol with an empty name
2. Even if it's there for a good reason, we probably should only suggest
symbols whose names have a length of at least 1 :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to