[llvm-bugs] [Bug 50111] New: lld/ELF typo correction produces confusing output

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Apr 24 07:36:35 PDT 2021


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: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com

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

thakis at thakis:~/src/hack$ ~/src/llvm-project/out/gn/bin/clang -c -g test.cc 
thakis at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210424/514976f2/attachment.html>


More information about the llvm-bugs mailing list