From 0cdbf6312224a298ecff9e74e008f83d75c85025 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Aug 14 2018 10:07:33 +0000 Subject: Add patch missing from previous commit. --- diff --git a/binutils-clear-version-info.patch b/binutils-clear-version-info.patch new file mode 100644 index 0000000..d5d5c20 --- /dev/null +++ b/binutils-clear-version-info.patch @@ -0,0 +1,21 @@ +--- binutils.orig/bfd/elflink.c 2018-08-14 10:25:09.108322746 +0100 ++++ binutils-2.31.1/bfd/elflink.c 2018-08-14 10:28:45.617780256 +0100 +@@ -686,13 +686,11 @@ bfd_elf_record_link_assignment (bfd *out + && !h->def_regular) + h->root.type = bfd_link_hash_undefined; + +- /* If this symbol is not being provided by the linker script, and it is +- currently defined by a dynamic object, but not by a regular object, +- then clear out any version information because the symbol will not be +- associated with the dynamic object any more. */ +- if (!provide +- && h->def_dynamic +- && !h->def_regular) ++ /* If this symbol is currently defined by a dynamic object, but not ++ by a regular object, then clear out any version information because ++ the symbol will not be associated with the dynamic object any ++ more. */ ++ if (h->def_dynamic && !h->def_regular) + h->verinfo.verdef = NULL; + + /* Make sure this symbol is not garbage collected. */