Add support for displaying new DWARF5 tags.

Resolves: #1472966
This commit is contained in:
Nick Clifton 2017-07-20 12:08:54 +01:00
parent f51532e55a
commit 1d0d142b8c
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,14 @@
--- binutils.orig/include/dwarf2.def 2017-07-20 09:05:22.616764282 +0100
+++ binutils-2.28/include/dwarf2.def 2017-07-20 09:05:59.168330104 +0100
@@ -310,6 +310,11 @@ DW_AT (DW_AT_enum_class, 0x6d)
DW_AT (DW_AT_linkage_name, 0x6e)
/* DWARF 5. */
DW_AT (DW_AT_noreturn, 0x87)
+DW_AT (DW_AT_alignment, 0x88)
+DW_AT (DW_AT_export_symbols, 0x89)
+DW_AT (DW_AT_deleted, 0x8a)
+DW_AT (DW_AT_defaulted, 0x8b)
+DW_AT (DW_AT_loclists_base, 0x8c)
DW_AT_DUP (DW_AT_lo_user, 0x2000) /* Implementation-defined range start. */
DW_AT_DUP (DW_AT_hi_user, 0x3fff) /* Implementation-defined range end. */

View File

@ -43,7 +43,7 @@
Summary: A GNU collection of binary utilities
Name: %{?cross}binutils%{?_with_debug:-debug}
Version: 2.28
Release: 12%{?dist}
Release: 13%{?dist}
License: GPLv3+
Group: Development/Tools
URL: http://sources.redhat.com/binutils
@ -93,6 +93,8 @@ Patch20: binutils-2.28-dynamic-section-warning.patch
Patch21: binutils-2.28-aarch64-copy-relocs.patch
# Ignore duplicate indirect symbols generated by GOLD.
Patch22: binutils-2.28-ignore-gold-duplicates.patch
# Add support for displaying new DWARF5 tags including DW_AT_export_symbols.
Patch23: binutils-2.28-DW_AT_export_symbols.patch
Provides: bundled(libiberty)
@ -236,6 +238,7 @@ using libelf instead of BFD.
%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
# We cannot run autotools as there is an exact requirement of autoconf-2.59.
@ -318,6 +321,7 @@ esac
CFLAGS="$CFLAGS -O0 -ggdb2 -Wno-error -D_FORTIFY_SOURCE=0"
%define enable_shared 0
%endif
CFLAGS="$CFLAGS -flto"
# We could optimize the cross builds size by --enable-shared but the produced
# binaries may be less convenient in the embedded environment.
@ -602,6 +606,10 @@ exit 0
%endif # %{isnative}
%changelog
* Thu Jul 20 2017 Nick Clifton <nickc@redhat.com> 2.28-13
- Add support for displaying new DWARF5 tags.
(#1472966)
* Wed Jul 19 2017 Nick Clifton <nickc@redhat.com> 2.28-12
- Correct snafu in previous delta that broke building s390 binaries.
(#1472486)