diff --git a/binutils-gas-dwarf-level-4.patch b/binutils-gas-dwarf-level-4.patch new file mode 100644 index 0000000..a8432f8 --- /dev/null +++ b/binutils-gas-dwarf-level-4.patch @@ -0,0 +1,11 @@ +--- binutils.orig/gas/as.c 2020-07-30 08:41:25.034236441 +0100 ++++ binutils-2.35/gas/as.c 2020-07-30 08:41:52.197058041 +0100 +@@ -103,7 +103,7 @@ int verbose = 0; + int flag_dwarf_cie_version = -1; + + /* The maximum level of DWARF DEBUG information we should manufacture. */ +-unsigned int dwarf_level = 0; ++unsigned int dwarf_level = 4; + + #if defined OBJ_ELF || defined OBJ_MAYBE_ELF + int flag_use_elf_stt_common = DEFAULT_GENERATE_ELF_STT_COMMON; diff --git a/binutils.spec b/binutils.spec index d8128c7..0214390 100644 --- a/binutils.spec +++ b/binutils.spec @@ -2,7 +2,7 @@ Summary: A GNU collection of binary utilities Name: %{?cross}binutils%{?_with_debug:-debug} Version: 2.35 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ URL: https://sourceware.org/binutils @@ -223,6 +223,10 @@ Patch21: binutils-warnings.patch # Purpose: Fix compile time warning messages building with gcc-10. (part 2). # Lifetime: Should be fixed in 2.36. Patch22: binutils-gcc-10-fixes.patch + +# Purpose: Default to DWARF level 4 in the assembler. +# Lifetime: Fixed in 2.36. +Patch23: binutils-gas-dwarf-level-4.patch #---------------------------------------------------------------------------- Provides: bundled(libiberty) @@ -407,7 +411,7 @@ touch */configure # LTO is triggering a bug in ld which in turn causes ld to create incorrect # binaries. It is not yet clear how serious this bug is (still debugging). # Until that analysis is finished I am disabling LTO -%define _lto_cflags %{nil} +#define _lto_cflags %{nil} echo target is %{binutils_target} @@ -801,6 +805,9 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Thu Jul 30 2020 Nick Clifton - 2.35-4 +- Default to DWARF level 4 in the assembler. + * Mon Jul 27 2020 Fedora Release Engineering - 2.35-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild