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: unassignedb...@nondot.org
Reporter: cbiesin...@google.com
CC: htmldevelo...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs