[llvm-bugs] [Bug 38050] -fdebug-prefix-map is a no-op for .S files
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 10 16:22:47 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38050
Dan McGregor <dan.mcgregor at usask.ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
CC| |dan.mcgregor at usask.ca
--- Comment #5 from Dan McGregor <dan.mcgregor at usask.ca> ---
This *nearly* fixes the issue. It doesn't handle the case where the full path
to the assembly file is specified on the command line. This is after the code
was committed:
$ clang-7 -g -c -o hello.o $PWD/hello.c -fdebug-prefix-map=$PWD=/src_root
$ strings hello.o|grep $PWD
$ clang-7 -g -c -o crti.o $PWD/crti.S -fdebug-prefix-map=$PWD=/src_root
$ strings crti.o|grep $PWD
/tmp/test/crti.S
The compilation directory is changed correctly and the DW_TAG_label values are
correct, but not DW_TAG_compile_unit:
$ llvm-dwarfdump crti.o
crti.o: file format ELF64-x86-64
.debug_info contents:
0x00000000: Compile Unit: length = 0x00000119 version = 0x0002 abbr_offset =
0x0000 addr_size = 0x08 (next unit at 0x0000011d)
0x0000000b: DW_TAG_compile_unit
DW_AT_stmt_list (0x00000000)
DW_AT_low_pc (0x0000000000000000)
DW_AT_high_pc (0x0000000000000004)
DW_AT_name ("/tmp/test/crti.S")
DW_AT_comp_dir ("/src_root")
DW_AT_producer ("clang version 7.0.0 (based on LLVM 7.0.0)")
DW_AT_language (DW_LANG_Mips_Assembler)
0x000000ea: DW_TAG_label
DW_AT_name ("init")
DW_AT_decl_file ("/src_root/crti.S")
DW_AT_decl_line (16)
DW_AT_low_pc (0x0000000000000000)
DW_AT_prototyped (0x00)
0x00000101: DW_TAG_unspecified_parameters
0x00000102: NULL
0x00000103: DW_TAG_label
DW_AT_name ("fini")
DW_AT_decl_file ("/src_root/crti.S")
DW_AT_decl_line (23)
DW_AT_low_pc (0x0000000000000000)
DW_AT_prototyped (0x00)
0x0000011a: DW_TAG_unspecified_parameters
0x0000011b: NULL
0x0000011c: NULL
--
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/20180710/a2c9c475/attachment-0001.html>
More information about the llvm-bugs
mailing list