From 1c7ceba1fdc1b18b89b10a8dd8b44a850f6ae499 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 9 Jul 2018 23:07:51 +0200 Subject: [PATCH] Update elfutils-0.173-new-notes-hack.patch for new annobin note. --- ...tch => elfutils-0.173-new-notes-hack.patch | 33 ++++++++++--------- elfutils.spec | 5 ++- 2 files changed, 22 insertions(+), 16 deletions(-) rename elfutils-0.171-new-notes-hack.patch => elfutils-0.173-new-notes-hack.patch (64%) diff --git a/elfutils-0.171-new-notes-hack.patch b/elfutils-0.173-new-notes-hack.patch similarity index 64% rename from elfutils-0.171-new-notes-hack.patch rename to elfutils-0.173-new-notes-hack.patch index f14562e..b47c211 100644 --- a/elfutils-0.171-new-notes-hack.patch +++ b/elfutils-0.173-new-notes-hack.patch @@ -1,21 +1,8 @@ diff --git a/src/elflint.c b/src/elflint.c -index df1b3a0..f4d82d9 100644 +index eec799b2..31092f2e 100644 --- a/src/elflint.c +++ b/src/elflint.c -@@ -4329,6 +4329,8 @@ section [%2d] '%s': unknown core file note type %" PRIu32 - case NT_GNU_HWCAP: - case NT_GNU_BUILD_ID: - case NT_GNU_GOLD_VERSION: -+ case NT_GNU_PROPERTY_TYPE_0: -+ case 256: - break; - - case 0: -diff --git a/src/elflint.c b/src/elflint.c -index 0a26d97..1cbf570 100644 ---- a/src/elflint.c -+++ b/src/elflint.c -@@ -3906,10 +3906,11 @@ section [%2zu] '%s': size not multiple of entry size\n"), +@@ -3905,10 +3905,11 @@ section [%2zu] '%s': size not multiple of entry size\n"), cnt, section_name (ebl, cnt), (int) shdr->sh_type); @@ -28,3 +15,19 @@ index 0a26d97..1cbf570 100644 if (shdr->sh_flags & ~(GElf_Xword) ALL_SH_FLAGS) { GElf_Xword sh_flags = shdr->sh_flags & ~(GElf_Xword) ALL_SH_FLAGS; +@@ -4324,10 +4325,15 @@ section [%2d] '%s': unknown core file note type %" PRIu32 + else + switch (nhdr.n_type) + { ++#define NT_GNU_BUILD_ATTRIBUTE_OPEN 0x100 ++#define NT_GNU_BUILD_ATTRIBUTE_FUNC 0x101 + case NT_GNU_ABI_TAG: + case NT_GNU_HWCAP: + case NT_GNU_BUILD_ID: + case NT_GNU_GOLD_VERSION: ++ case NT_GNU_PROPERTY_TYPE_0: ++ case NT_GNU_BUILD_ATTRIBUTE_OPEN: ++ case NT_GNU_BUILD_ATTRIBUTE_FUNC: + break; + + case 0: diff --git a/elfutils.spec b/elfutils.spec index ea617e4..67293da 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -20,7 +20,7 @@ Release: %{baserelease}%{?dist} Source: %{?source_url}%{name}-%{version}.tar.bz2 # Patches -Patch1: elfutils-0.171-new-notes-hack.patch +Patch1: elfutils-0.173-new-notes-hack.patch Requires: elfutils-libelf%{depsuffix} = %{version}-%{release} Requires: elfutils-libs%{depsuffix} = %{version}-%{release} @@ -315,6 +315,9 @@ fi %endif %changelog +* Mon Jul 9 2018 Mark Wielaard +- Update elfutils-0.173-new-notes-hack.patch for new annobin note. + * Fri Jun 29 2018 Mark Wielaard - 0.173-1 - New upstream release - More fixes for crashes and hangs found by afl-fuzz. In particular