bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/27195] Error: file number less than one


From: nickc at redhat dot com
Subject: [Bug gas/27195] Error: file number less than one
Date: Mon, 18 Jan 2021 12:52:37 +0000

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

--- Comment #4 from Nick Clifton <nickc at redhat dot com> ---
(In reply to H.J. Lu from comment #2)
> I think it is very bad that
> 
> $ as -o x.o x.s
> 
> fails when x.s contains DWARF5 info generated by GCC 11.  Assembler shouldn't
> require --gdwarf-5 to accept DWARF5 info.  GCC 11 should emit an assembly
> directive to enable DWARF5 info in assembler.

Wouldn't it just be easier to update gcc's spec file to add the --gdwarf-5
directive ?  Eg by changing this part of asm_debug:

  %{!gstabs*:%{g*:--gdwarf2}}

into:

  %{!gstabs*:%{g*:--gdwarf-%*}%{!g:--gdwarf-5}}

-- 
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]