Hi Jakub,

On Wed, 2020-07-29 at 19:10 +0200, Jakub Jelinek wrote:
> On Wed, Jul 29, 2020 at 06:33:45PM +0200, Mark Wielaard wrote:
> > Yes, I think we have a winner!
> > gas generates a tiny bit of debuginfo even if you don't supply -g.
> > 
> > But... in 2.35 you can give the DWARF level you want.
> > The problem with not supplying -g (or --gdwarf-[VERSION]) is that the
> > dwarf_level is never set! And then gas will happily create an
> > .debug_info section with DWARF CUs that have a version of zero (!).
> > 
> > This, defaulting to version 4. Fixes it for me:
> 
> Older as versions emitted DWARF 2, so wouldn't that be a better default
> and let gcc pass --gdwarf-? to as if it detects support at compile time
> depending on gcc's default dwarf version or -gdwarf-N option?

Defaulting to dwarf_level = 2 in the patch should also work. But I
think it is high time we defaulted all tools to DWARF version 4 these
days.

Cheers,

Mark
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to