https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91888
Bug ID: 91888
Summary: GCC will write absolute paths into DW_AT_GNU_dwo_name
even with -fdebug-prefix-map
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: cbiesinger at google dot com
Target Milestone: ---
Created attachment 46939
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46939&action=edit
testcase script
$ readelf --debug-dump /tmp/outputs/foo
[...]
<20> DW_AT_GNU_dwo_name: (indirect string, offset: 0x0):
/tmp/outputs/foo.dwo
<24> DW_AT_comp_dir : .
That's despite compiling with -fdebug-prefix-map=/tmp=.
See the attached script that creates and compiles a simple c file.
(this is with gcc from git trunk, revision
e8f8842d90abe5eafa8c32f08fbc3a747a45747c from sep 24)