From 1d0d142b8c3146552dc9b47cf784ee2577985808 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Jul 20 2017 11:08:54 +0000 Subject: Add support for displaying new DWARF5 tags. Resolves: #1472966 --- diff --git a/binutils-2.28-DW_AT_export_symbols.patch b/binutils-2.28-DW_AT_export_symbols.patch new file mode 100644 index 0000000..e15b3d4 --- /dev/null +++ b/binutils-2.28-DW_AT_export_symbols.patch @@ -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. */ diff --git a/binutils.spec b/binutils.spec index 54dbad5..74f4a88 100644 --- a/binutils.spec +++ b/binutils.spec @@ -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 2.28-13 +- Add support for displaying new DWARF5 tags. + (#1472966) + * Wed Jul 19 2017 Nick Clifton 2.28-12 - Correct snafu in previous delta that broke building s390 binaries. (#1472486)