From 56fddbc07f1c2d4c25c0700392d60920d3cd50fb Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Feb 04 2016 12:12:15 +0000 Subject: Suppress the Reloc_Stub::Key::name() function in GOLD. --- diff --git a/binutils-2.26-dirsearch-destructor-unused.patch b/binutils-2.26-dirsearch-destructor-unused.patch index 8400078..b3e792c 100644 --- a/binutils-2.26-dirsearch-destructor-unused.patch +++ b/binutils-2.26-dirsearch-destructor-unused.patch @@ -16,3 +16,23 @@ void Dir_caches::add(const char* dirname) +--- binutils-2.26.orig/gold/arm.cc 2016-02-04 10:31:45.227796193 +0000 ++++ binutils-2.26/gold/arm.cc 2016-02-04 12:02:43.897996168 +0000 +@@ -4493,7 +4493,7 @@ Stub::do_fixed_endian_write(unsigned cha + // Reloc_stub::Key methods. + + // Dump a Key as a string for debugging. +- ++#if 0 + std::string + Reloc_stub::Key::name() const + { +@@ -4524,7 +4524,7 @@ Reloc_stub::Key::name() const + return std::string(buffer); + } + } +- ++#endif + // Reloc_stub methods. + + // Determine the type of stub needed, if any, for a relocation of R_TYPE at diff --git a/binutils.spec b/binutils.spec index d56b181..1eeb655 100644 --- a/binutils.spec +++ b/binutils.spec @@ -505,7 +505,8 @@ exit 0 %changelog * Thu Feb 04 2016 Nick Clifton 2.26-8 - Fix indentation in bfd/coff-[i386|x86_64].c to avoid compile time warning. -- Mark GOLD's dir_caches destructor as unused. +- Suppress GOLD's dir_caches destructor. +- Suppress GOLD's Reloc_stub::Key::name function. * Wed Feb 03 2016 Fedora Release Engineering - 2.26-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild