[Bug gas/26745] New: --debug-prefix-map OLD=NEW option does not correctly affect DW_AT_name in DW_TAG_compile_unit

2020-10-17 Thread marko.micovic.93 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26745

Bug ID: 26745
   Summary: --debug-prefix-map OLD=NEW option does not correctly
affect DW_AT_name in DW_TAG_compile_unit
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: marko.micovic.93 at gmail dot com
  Target Milestone: ---

Given the assembly source file with next simple x86-64 assembly statement

.text
movq %rax, %rbx
.end

gas produces next outputs.

--

as -g --debug-prefix-map ./=./random/path/ -o example.o example.s
objdump -g example.o

Output of the previous two commands among other things is:

Contents of the .debug_info section (loaded from example.o):

  Compilation Unit @ offset 0x0:
   Length:0x2a (32-bit)
   Version:   2
   Abbrev Offset: 0x0
   Pointer Size:  8
 <0>: Abbrev Number: 1 (DW_TAG_compile_unit)
   DW_AT_stmt_list   : 0x0
<10>   DW_AT_low_pc  : 0x0
<18>   DW_AT_high_pc : 0x3
<20>   DW_AT_name: (indirect string, offset: 0x0): example.s
<24>   DW_AT_comp_dir: (indirect string, offset: 0xa):
/home/marko/example
<28>   DW_AT_producer: (indirect string, offset: 0x1e): GNU AS 2.34
<2c>   DW_AT_language: 32769(MIPS assembler)

--

as -g --debug-prefix-map =./random/path/ -o example.o example.s
objdump -g example.o

Output of the previous two commands among other things is:

Contents of the .debug_info section (loaded from example.o):

  Compilation Unit @ offset 0x0:
   Length:0x2a (32-bit)
   Version:   2
   Abbrev Offset: 0x0
   Pointer Size:  8
 <0>: Abbrev Number: 1 (DW_TAG_compile_unit)
   DW_AT_stmt_list   : 0x0
<10>   DW_AT_low_pc  : 0x0
<18>   DW_AT_high_pc : 0x3
<20>   DW_AT_name: (indirect string, offset: 0x0): example.s
<24>   DW_AT_comp_dir: (indirect string, offset: 0xa):
./random/path//home/marko/example
<28>   DW_AT_producer: (indirect string, offset: 0x2c): GNU AS 2.34
<2c>   DW_AT_language: 32769(MIPS assembler)

--

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/26745] --debug-prefix-map OLD=NEW option does not correctly affect DW_AT_name in DW_TAG_compile_unit

2020-10-17 Thread marko.micovic.93 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26745

Marko  changed:

   What|Removed |Added

 CC||marko.micovic.93 at gmail dot 
com

-- 
You are receiving this mail because:
You are on the CC list for the bug.