https://sourceware.org/bugzilla/show_bug.cgi?id=25612
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.