summaryrefslogtreecommitdiffstats
path: root/source/d/binutils/patches/binutils-rh1312151.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/d/binutils/patches/binutils-rh1312151.patch')
-rw-r--r--source/d/binutils/patches/binutils-rh1312151.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/source/d/binutils/patches/binutils-rh1312151.patch b/source/d/binutils/patches/binutils-rh1312151.patch
new file mode 100644
index 000000000..e989b86fe
--- /dev/null
+++ b/source/d/binutils/patches/binutils-rh1312151.patch
@@ -0,0 +1,22 @@
+--- binutils-2.26.orig/bfd/elflink.c 2016-02-26 13:21:54.134859610 +0000
++++ binutils-2.26/bfd/elflink.c 2016-02-26 13:22:49.083168157 +0000
+@@ -555,6 +555,19 @@ bfd_elf_record_link_assignment (bfd *out
+ if (h == NULL)
+ return provide;
+
++ if (h->versioned == unknown)
++ {
++ /* Set versioned if symbol version is unknown. */
++ char *version = strrchr (name, ELF_VER_CHR);
++ if (version)
++ {
++ if (version > name && version[-1] != ELF_VER_CHR)
++ h->versioned = versioned_hidden;
++ else
++ h->versioned = versioned;
++ }
++ }
++
+ switch (h->root.type)
+ {
+ case bfd_link_hash_defined: