[llvm-bugs] [Bug 34826] New: Duplicate data symbols don't report line numbers
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 3 19:28:53 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34826
Bug ID: 34826
Summary: Duplicate data symbols don't report line numbers
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: smeenai at fb.com
CC: grimar at accesssoftek.com, llvm-bugs at lists.llvm.org,
rafael.espindola at gmail.com, ruiu at google.com
% cat /tmp/i.c
int i = 0;
% clang -g -o /tmp/i.o -c /tmp/i.c
% ld.lld /tmp/i.o /tmp/i.o
ld.lld: error: duplicate symbol: i
>>> defined at i.c
>>> /tmp/i.o:(i)
>>> defined at i.c
>>> /tmp/i.o:(.bss+0x0)
Note the lack of any line numbers in the error. For comparison, the error
message for a duplicate function symbol looks like
ld.lld: error: duplicate symbol: i
>>> defined at i.c:1 (/tmp/i.c:1)
>>> /tmp/i.o:(i)
>>> defined at i.c:1 (/tmp/i.c:1)
>>> /tmp/i.o:(.text+0x0)
--
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/20171004/93643b42/attachment-0001.html>
More information about the llvm-bugs
mailing list