[Top][All Lists]

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

[Bug gas/25612] New: -gdwarf-{3,4,5} command line arguments

From: ndesaulniers at google dot com
Subject: [Bug gas/25612] New: -gdwarf-{3,4,5} command line arguments
Date: Fri, 28 Feb 2020 21:52:56 +0000


            Bug ID: 25612
           Summary: -gdwarf-{3,4,5} command line arguments
           Product: binutils
           Version: 2.35 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: ndesaulniers at google dot com
  Target Milestone: ---

Playing around with dwarf-5, I notices that GNU as has the command line flag
-gdwarf-2, but no equivalents for DWARF 3, 4, or 5.  It looks like `gcc
-gwarf-5` will set the second value in the .debug_info section to the dwarf
version?  I haven't put thought into what version should be preferred if BOTH
the command line version AND assembly specify differing versions.

The Linux kernel has a lot of out of line assembly, and I'm not sure it sets
the dwarf version correctly, though maybe that's something just to be fixed per
file than via global assembler flag.

Thoughts on implementing -gdwarf-{3,4,5} in GNU as?  This would match the
behavior of `gcc -gdwarf-{3,4,5}` and `clang -gdwarf-{3,4,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]