1In assembler mode, clang defaulted to DWARF3, if only -g was specified. 2Change this to DWARF2, in the simplest way possible. (Upstream, this 3was fixed in clang trunk r250173, but this was done along with a lot of 4shuffling around of debug option handling, so it cannot be applied 5as-is.) 6 7Introduced here: https://svnweb.freebsd.org/changeset/base/291701 8 9Index: tools/clang/tools/driver/cc1as_main.cpp 10=================================================================== 11--- tools/clang/tools/driver/cc1as_main.cpp 12+++ tools/clang/tools/driver/cc1as_main.cpp 13@@ -141,7 +141,7 @@ struct AssemblerInvocation { 14 RelaxAll = 0; 15 NoExecStack = 0; 16 FatalWarnings = 0; 17- DwarfVersion = 3; 18+ DwarfVersion = 2; 19 } 20 21 static bool CreateFromArgs(AssemblerInvocation &Res, 22