Default to DWARF level 4 in the assembler.

This commit is contained in:
Nick Clifton 2020-07-30 09:29:21 +01:00
parent 3eb4862ad3
commit a8b0efde87
2 changed files with 20 additions and 2 deletions

View File

@ -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;

View File

@ -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 <nickc@redhat.com> - 2.35-4
- Default to DWARF level 4 in the assembler.
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.35-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild