[llvm-bugs] [Bug 31299] New: lld prints basename of source file name in error messages
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 6 14:31:54 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31299
Bug ID: 31299
Summary: lld prints basename of source file name in error
messages
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: roland at hack.frob.com
CC: llvm-bugs at lists.llvm.org, phosek at chromium.org
Classification: Unclassified
Test case:
$ mkdir foo
$ echo 'void _start(void) { foobar(); }' > foo/bar.c
$ gcc -g -c foo/bar.c
$ bin/ld.lld -o out bar.o
bin/ld.lld: error: bar.c:1: undefined symbol 'foobar'
$
This should say:
bin/ld.lld: error: foo/bar.c:1: undefined symbol 'foobar'
File names in DWARF info must be assembled from both the directory table
and the file name table in .debug_line. It looks like lld is using only
the file name table.
--
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/20161206/e01c6291/attachment.html>
More information about the llvm-bugs
mailing list