From 8a262dc5807902effb8616338e69662af1ce442e Mon Sep 17 00:00:00 2001 From: openeuler-basic Date: Wed, 15 Jan 2020 01:01:43 +0800 Subject: [PATCH] fix complaining about relocs in the .gnu.build.attribute --- binutils-gold-ignore-discarded-note-relocs.patch | 10 ++++++++++ binutils.spec | 10 +++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 binutils-gold-ignore-discarded-note-relocs.patch diff --git a/binutils-gold-ignore-discarded-note-relocs.patch b/binutils-gold-ignore-discarded-note-relocs.patch new file mode 100644 index 0000000..b354fa4 --- /dev/null +++ b/binutils-gold-ignore-discarded-note-relocs.patch @@ -0,0 +1,10 @@ +--- binutils.orig/gold/target-reloc.h 2018-07-12 11:37:24.894494658 +0100 ++++ binutils-2.30.90/gold/target-reloc.h 2018-07-12 15:38:50.049083904 +0100 +@@ -136,6 +136,7 @@ class Default_comdat_behavior + if (Layout::is_debug_info_section(name)) + return CB_PRETEND; + if (strcmp(name, ".eh_frame") == 0 ++ || strncmp(name, ".gnu.build.attributes", 21) == 0 // FIXME: We should really be checking the section type for ST_NOTE... + || strcmp(name, ".gcc_except_table") == 0) + return CB_IGNORE; + return CB_ERROR; diff --git a/binutils.spec b/binutils.spec index 27dbeae..c159263 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,7 +1,7 @@ Summary: Binary utilities Name: binutils Version: 2.33.1 -Release: 2 +Release: 3 License: GPLv3+ URL: https://sourceware.org/binutils @@ -14,6 +14,8 @@ Patch03: binutils-2.22.52.0.4-no-config-h-check.patch #BUG:1452111 Patch04: binutils-2.29-revert-PLT-elision.patch Patch05: binutils-2.27-aarch64-ifunc.patch +#Stop gold from complaining about relocs +Patch06: binutils-gold-ignore-discarded-note-relocs.patch #PATCH-CVE-UPSTREAM Patch6009: CVE-2019-1010204.patch @@ -313,6 +315,12 @@ fi %{_infodir}/bfd*info* %changelog +* Wed Jan 15 2020 openEuler Buildteam - 2.33.1-3 +- Type:bugfix +- ID:CVE +- SUG:NA +- DESC:add patch to solve complaining about relocs in the .gnu.build.attribute + * Tue Jan 14 2020 openEuler Buildteam - 2.33.1-2 - Type:bugfix - ID:CVE -- Gitee