bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/27246] ld.gold does not support DWARF5


From: raj.khem at gmail dot com
Subject: [Bug gold/27246] ld.gold does not support DWARF5
Date: Thu, 18 Mar 2021 23:46:47 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27246

--- Comment #11 from Khem Raj <raj.khem at gmail dot com> ---
(In reply to Khem Raj from comment #10)
> further reduced test is
> 
> #define overalloc_at(f, l)                                              \
> do {                                                                    \
>         fatal_exit("ERROR: attempting to allocate too large block at %s:%d",
> f, l);\
> } while (0)
> 
> #define overalloc()     overalloc_at(__FILE__, __LINE__)
> 
> void foo()
> {
>   overalloc();
> }
> 
> % gcc-11.0.1  /tmp/a.c -c -gdwarf-5
> % /tmp/obj/gold/ld-new a.o
> /tmp/obj/gold/ld-new: internal error in format_file_lineno, at
> /home/kraj/work/binutils-gdb/gold/dwarf_reader.cc:2278
> 
> ICE not seen when -gdwarf-4 is used


I compared the assembly output and difference ( dwarf4 vs dwarf5 ) that matters
is 
that when dwarf5 is enabled then it emits this .file directive into .debug_line
section which gold does not like

@@ -289,38 +290,40 @@
        .quad   0
        .section        .debug_line,"",@progbits
 .Ldebug_line0:
+       .file 0
"/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/links/2.21-r0/links-2.21"
"/tmp/a.c"
        .section        .debug_str,"MS",@progbits,1

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]