[llvm-bugs] [Bug 43502] New: Clang will write absolute paths into DW_AT_GNU_dwo_name even with -fdebug-prefix-map / -fdebug-compilation-dir .
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Sep 29 18:38:09 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43502
Bug ID: 43502
Summary: Clang will write absolute paths into
DW_AT_GNU_dwo_name even with -fdebug-prefix-map /
-fdebug-compilation-dir .
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: cbiesinger at google.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Created attachment 22602
--> https://bugs.llvm.org/attachment.cgi?id=22602&action=edit
testcase script
Tested using Chrome's clang, which is trunk.
$clang -fdiagnostics-color=never -gsplit-dwarf
-fdebug-prefix-map=$dir=\$ORIGIN -c -o $dir/outputs/foo.o $dir/inputs/foo.c
$clang $dir/outputs/foo.o -fdiagnostics-color=never -gsplit-dwarf
-fdebug-prefix-map=$dir=\$ORIGIN -lm -o $dir/outputs/foo
$ readelf --debug-dump /tmp/outputs/foo
[...]
<10> DW_AT_comp_dir : (indirect string, offset: 0x0): $ORIGIN
<14> DW_AT_GNU_pubnames: 1
<14> DW_AT_GNU_dwo_name: (indirect string, offset: 0x8):
/tmp/outputs/foo.dwo
[...]
See attached script that creates this testcase. Using clang from chrome trunk
as of Sep 24 (same result as clang-8)
The expected result is that DW_AT_GNU_dwo_name is $ORIGIN/outputs/foo.dwo.
Same result if I use '-fdebug-compilation-dir .
--
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/20190930/2147e24e/attachment.html>
More information about the llvm-bugs
mailing list